Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can You Obtain The IP Address Of Network Switch Through Media Gateway

Status
Not open for further replies.

Turtlepuke

Technical User
Jan 9, 2008
90
US
Question:

I'd like to catalog the IP addresses of all the network switches at various sites that our Media Gateways are plugged into.
From the command line of a gateway, is there a way to determine the IP address of the switch it's plugged into? Would it just be the default gateway? Or something else?

If so, what is the command to determine this?


Thanks!
 
Not generally, switches and devices are layer2 so will have MAC address tables

If the switch supports it you could try LLDP on the gateway:

show lldp
 
If the network team is sharp, they will not have the network switch IP Address on the same VLAN/Subnet as the media gateway. Assuming Layer 3 routing in the switch, your gateway is going to be assigned to an interface on the switch just not the same one as management. Basically, you shouldn't be able to pull the IP Address of the data switch.
 
Media Gateways types may have unique commandline syntax.
g700 stacks are quite different than g350, g430, g450

Below are some examples to try.

MG-001-1(super)# show system
MG-001-1(super)# show interface
MG-001-1(super)# show ip rout static
MG-001-1(super)# show voip
MG-001-1(super)# show mgc
MG-001-1(super)# show mgc list
MG-001-1(super)# show mgp recovery
MG-001-1(super)# show mg list_config
MG-001-1(super)# show sync timing

Below are examples with output.

Code:
g700 media-gateway:
MG-001-1(super)# show system

Uptime(d,h:m:s): 93, 13:45:34

System Name    : -- Empty --
System Location: -- Empty --
System Contact : -- Empty --
MAC Address    : 00-04-0D-F9-3F-B1
Serial No      : 071646400148
Model No       : G700
HW Vintage     : 08
HW Suffix      : C
FW Vintage     : 26.36.0

Media Gateway Power Supplies
                 VOLTAGE(V) ACTUAL(V)  STATUS
                 ---------- ---------- ----------
DSP Complex      3.4        3.470      OK
MGP              5.1        5.099      OK
Media Modules    -48.0      -47.990    OK
VoIP DSP         1.6        1.580      OK
VoIP CPU         1.5        1.500      OK

MG-001-1(super)# show interface

OPERATIONAL STATE: -- Currently in use --

INTERFACE  SRC  VLAN  IP ADDRESS       NETMASK          MAC ADDRESS
---------  ---  ----  ---------------  ---------------  -----------------
mgp        S    1     10.200.3.4       255.255.255.0    00-04-0D-F9-3F-B1
voip-v0    S    1     10.200.3.6       255.255.255.0    00-04-0D-F9-3F-B2

MG-001-1(super)# show ip rout static

DESTINATION      MASK             GATEWAY
---------------  ---------------  ---------------
10.200.3.0       255.255.255.0    10.200.3.4
0.0.0.0          0.0.0.0          10.200.3.1

MG-001-1(super)# show voip

VOIP ENGINE PARAMETERS
---------------------------------------------------------
Slot Number         : v0
Current IP Address  : 10.200.3.6
Static IP Address   : 10.200.3.6
DHCP Used           : No
DSP Firmware Version: 72
MAC Address         : 00-04-0D-F9-3F-B2
Fault Status        : No Fault Messages
Additional Status   : No Status Messages

CURRENT STATE
---------------------------------------------------------
In Use     : 0 of 64 channels, 0 of 1920 points (0.0% used)
DSPs State : Idle
Admin State: Release

MG-001-1(super)# show mgc

CALL CONTROLLER STATUS
-------------------------------------------
Registered          : YES
Active Controller   : 10.200.3.2
H248 Link Status    : UP
H248 Link Error Code: 0x0

CONFIGURED MGC HOST
---------------------
10.200.3.2       
-- Not Available --
-- Not Available --
-- Not Available --

MG-001-1(super)# show mgc list

CONFIGURED MGC HOST
---------------------
10.200.3.2       
-- Not Available --
-- Not Available --
-- Not Available --

MG-001-1(super)# show mg list_config

SLOT  TYPE   CODE   SUFFIX  HW VINTAGE  FW VINTAGE   VOIP FW
----  ------ -----  ------  ----------  -----------  -------
v0    G700   DAF1   C       08          26.36.0(A)   72
v1    ICC    S8300  C       4           4            N/A
v2    DS1    MM710  A       5           18           N/A
v3    ANA    MM716  A       3           88           N/A
v4     -- Not Installed --

MG-001-1(super)# show sync timing

SOURCE     MM                   STATUS                   FAILURE
---------  -------------------  -----------------------  ---------------
Primary    v2                   Active                   None
Secondary                       Not Configured
Local      v0                   Standby                  None

Active Source: v2               Sync Source Switching: Enabled
Code:
g350 media-gateway
200PG350-001(super)#  show system
System Name        :
System Location    :
System Contact     :
Uptime (d,h:m:s)   : 13,21:17:46
MV Time            : 08:09:29 24 SEP 2013
MAC Address        : 00:04:0d:f2:1d:21
WAN MAC address    : 00:04:0d:f2:1d:20
Serial No          : 07IS13105677
Model No           : G350
HW Vintage         : 3
HW Suffix          : B
FW Vintage         : 26.33.0
HW Ready for FIPS  : No
200PG350-001(super)# show mgc list

CONFIGURED MGC HOST
---------------------
10.236.51.7
-- Not Available --
-- Not Available --
-- Not Available --
survivable-call-engine      disabled

Done!

200PG350-001(super)# show run
200PG350-001(super)#
! version 26.33.0
Config info release 26.33.0 time "08:08:55 24 SEP 2013 " serial_number 07IS13105
677
 !
encrypted-username Wjim1hPnu0srptL2bjadtQ== password pvw/TQ76PvTRR6HZviUgeuw3uhF
PoLrsQLiOwoODMUo= access-type kwAaSp8E3YzirURkqTfAjg==
hostname "200PG350"
set logging file enable
set logging file condition all Error
set logging file condition BOOT Debug
!
encrypted-snmp-server community read-only 4uOv0kszPTieiSMZMLgJvQ== read-write 1d
G0CuCWsjfcCgBpRcYB4w==
ip tftp-server
set spantree disable
!
!
ds-mode t1
!
interface Vlan 1
 icc-vlan
 ip address 10.236.51.8     255.255.255.192
 pmi
 exit
!
interface FastEthernet 10/2
 exit
!
interface Console
 exit
!
interface USB-Modem
 ppp authentication ras
 no shutdown
 exit
!
ip default-gateway 10.236.51.1     1 low
!
set mgc list 10.236.51.7
set mediaserver 10.236.51.7 10.236.51.7 23 telnet
set mediaserver 10.236.51.7 10.236.51.7 5023 sat
set reset-times primary-search 5
set reset-times total-search 10
set sync interface primary v2
set sync source primary
rtp-stat qos-trap
no rtp-stat fault
!#
!# End of configuration file. Press Enter to continue.

200PG350-001(super)# show port
Port   Name             Status    Vlan Level  Neg     Dup. Spd. Type
------ ---------------- --------- ---- ------ ------- ---- ---- ----------------
10/3   NO NAME          connected 1     0     enable  full 100M Avaya Inc., G350
 Media Gateway, 10/100BaseTx Port

200PG350-001(super)# show interface

Vlan 1 is up, line protocol is up
 Physical address is 00:04:0d:f2:1d:21
 Internet address is 10.236.51.8, mask is 255.255.255.192
 Primary management interface
 MTU 1500 bytes, Bandwidth 100000 kbit
 Reliability 255/255 txLoad 1/255 rxLoad 1/255
 Encapsulation ARPA, ICC-VLAN
 Link status trap disabled
 Full-duplex, 100Mb/s
 ARP type: ARPA, ARP Timeout 04:00:00
 Last input 00:00:00, Last output 00:00:00
 Last clearing of 'show interface' counters never
 5 minute input rate 1025 bits/sec, 1 packets/sec
 5 minute output rate 699 bits/sec, 1 packets/sec
 0 input drops, 0 output drops, 0 unknown protocols
 1219905 packets input, 132738558 bytes
 80528 broadcasts received, 0 giants
 0 input errors, 0 CRC
 1054834 packets output, 77649066 bytes
 0 output errors, 0 collisions

FastEthernet 10/2 is down, line protocol is down
 Physical address is 00:04:0d:f2:1d:20
 MTU 1500 bytes, Bandwidth 10000 kbit
 Reliability 1/255 txLoad 1/255 rxLoad 1/255
 Encapsulation ARPA
 Link status trap enabled
 Keepalive not set
 Half-duplex, 10Mb/s, 10BaseTX
 ARP type: ARPA, ARP Timeout 04:00:00
 Last input never, Last output never
 Last clearing of 'show interface' counters never
 5 minute input rate 0 bits/sec, 0 packets/sec
 5 minute output rate 0 bits/sec, 0 packets/sec
 0 input drops, 0 output drops, 0 unknown protocols
 0 packets input, 0 bytes
 0 broadcasts received, 0 giants
 0 input errors, 0 CRC
 0 packets output, 0 bytes
 0 output errors, 0 collisions

Console asynchronous mode is terminal
Cable type: terminal
Terminal baud rate is 9600

USB-Modem is not-present
 MTU 1500 bytes
 Encapsulation PPP
 Link status trap disabled
 Keepalive set (10 sec)
 Authentication RAS
 Last peer authentication attempt: passed
 PPP timeout absolute: 0
 Modem type: MultiTech-ZBA
 Modem init string: AT S7=45 S0=2 V1 X4 &c1 E0 Q0
 Last input never, Last output never
 Last clearing of 'show interface' counters never
 5 minute input rate 0 bits/sec, 0 packets/sec
 5 minute output rate 0 bits/sec, 0 packets/sec
 0 input drops, 0 output drops, 0 unknown protocols
 0 packets input, 0 bytes
 0 broadcasts received, 0 giants
 0 input errors, 0 CRC, 0 abort
 0 packets output, 0 bytes
 0 output errors, 0 collisions, 0 carrier transitions
Done!
200PG350-001(super)# show ip route
Showing 2 rows
    Network     Mask      Interface            Next-Hop      Cost  TTL  Source
--------------- ---- ------------------- ------------------- ----- --- ---------
0.0.0.0            0 Vlan     1          10.236.51.1             1 n/a STAT-LO
10.236.51.0       26 Vlan     1          10.236.51.8             1 n/a LOCAL
Code:
g450 media-gateway

springfield-g450-143(super)# show system
System Name             :
System Location         :
System Contact          :
Uptime (d,h:m:s)        : 0,02:24:26
Call Controller Time    : 18:15:41 19 AUG 2013
Serial No               : 10N551705532
Model                   : G450
HW Ready for FIPS       : No
Chassis HW Vintage      : 1
Chassis HW Suffix       : A
Mainboard HW Vintage    : 2
Mainboard HW Suffix     : B
Mainboard FW Vintage    : 30.12.1
LAN MAC Address         : b4:b0:17:8f:fc:50
WAN1 MAC Address        : b4:b0:17:8f:fc:51
WAN2 MAC Address        : b4:b0:17:8f:fc:52
SERVICES MAC address    : b4:b0:17:8f:fc:53
Memory #1               : 256MB
Memory #2               : Not present
Compact Flash Memory    : No CompactFlash card is installed
PSU #1                  : 400W
PSU #2                  : Not present
Media Socket #1         : MP80 VoIP DSP Module
Media Socket #2         : Not present
Media Socket #3         : Not present
Media Socket #4         : Not present
FAN Tray                : Present
springfield-g450-143(super)# show mm
MEDIA MODULE DESCRIPTION: v1
-------------------------------------------------
Type           : ICC
Description    : ICC Media Module
Serial Number  : UNKNOWN
HW Vintage     : 1
HW Suffix      : D
FW Version     : 1
No. of ports   : 2
Faults         : No Fault Messages


This is an MGC controlled Media Module, check
the MGC for additional status information.


MEDIA MODULE DESCRIPTION: v2
-------------------------------------------------
Not Installed

MEDIA MODULE DESCRIPTION: v3
-------------------------------------------------
Not Installed

MEDIA MODULE DESCRIPTION: v4
-------------------------------------------------
Not Installed

MEDIA MODULE DESCRIPTION: v5
-------------------------------------------------
Not Installed

MEDIA MODULE DESCRIPTION: v6
-------------------------------------------------
Type           : MM710
Description    : T1/E1 Media Module
Serial Number  : 10WZ51201435
HW Vintage     : 11
HW Suffix      : B
FW Version     : 47
No. of ports   : 1
Faults         : No Fault Messages


This is an MGC controlled Media Module, check
the MGC for additional status information.


MEDIA MODULE DESCRIPTION: v7
-------------------------------------------------
Type           : MM711
Description    : Analog Media Module
Serial Number  : 09WZ50204588
HW Vintage     : 33
HW Suffix      : A
FW Version     : 94
No. of ports   : 8
Faults         : No Fault Messages


This is an MGC controlled Media Module, check
the MGC for additional status information.


MEDIA MODULE DESCRIPTION: v8
-------------------------------------------------
Not Installed

springfield-g450-143(super)# show run

! version 30.12.1
Config info release 30.12.1 time "18:16:13 19 AUG 2013 " serial_number 10N551704
946
 !
encrypted-username osfcGq3TMf9k3gm6NpUa/A== password qlVVSFOfzBC+fSHLqOP69i9ABPL
JyBrL2K0Lgey26Zs= access-type qrsyQZxjmmqiVxWoL4YEIg==
hostname "springfield-g450"
set logging file enable
set logging file condition all Error
set logging file condition BOOT Debug
!
no ip telnet
encrypted-snmp-server community read-only iLMx4Wlx20wqV30Slqov2w== read-write DD
/RoGqNQsjom5zj9K+4BycIHxw8XTnxkJZdeUMhnwspringfield-g450-143(super)# A=
!
ds-mode t1
!
interface Vlan 1
 icc-vlan
 ip address 172.19.40.200   255.255.255.0
 pmi
 exit
!
interface FastEthernet 10/3
 exit
!
interface FastEthernet 10/4
 exit
!
interface Console
 exit
!
interface USB-Modem
 description "Default Modem Setup"
 timeout absolute 10
 ppp authentication ras
 no shutdown
 ip address 10.3.248.253    255.255.255.252
 exit
!
ip default-gateway 172.19.40.1     1 low
!
set mgc list 172.18.0.50,172.18.0.51,172.19.40.201
set mediaserver 172.18.0.50 172.18.0.50 23 telnet
set mediaserver 172.18.0.50 172.18.0.50 5023 sat
set mediaserver 172.18.0.51 172.18.0.51 23 telnet
set mediaserver 172.18.0.51 172.18.0.51 5023 sat
set mediaserver 172.19.40.201 172.19.40.201 23 telnet
set mediaserver 172.19.40.201 172.19.40.201 5023 sat
set reset-times primary-search 5
set reset-times total-search 10
set sync interface primary v6
set sync source primary
rtp-stat qos-trap
no rtp-stat fault
ip license-server
analog-test
exit
!#
!# End of configuration file. Press Enter to continue.

springfield-g450-143(super)# show mgc

CALL CONTROLLER STATUS
-------------------------------------------
Registered            : YES
Active Controller     : 172.19.40.201
Controller SW Version : R016x.00.1.510.1
H248 Link Status      : UP
H248 Link Error Code  : 0x0

CONFIGURED MGC HOST
---------------------
172.18.0.50
172.18.0.51
172.19.40.201
-- Not Available --
sls                        disabled

Done!
springfield-g450-143(super)# show interface

Vlan 1 is up, line protocol is up
 Physical address is b4:b0:17:8f:fc:50
 Internet address is 172.19.40.200, mask is 255.255.255.0
 Primary management interface
 MTU 1500 bytes, Bandwidth 100000 kbit
 IPSec PMTU: copy df-bit, Min PMTU is 300
 Reliability 255/255 txLoad 1/255 rxLoad 1/255
 Encapsulation ARPA, ICC-VLAN
 Link status trap disabled
 Full-duplex, 100Mb/s
 ARP type: ARPA, ARP Timeout 04:00:00
 Last input 00:00:00, Last output 00:00:00
 Last clearing of 'show interface' counters never
 5 minute input rate 1867 bits/sec, 1 packets/sec
 5 minute output rate 556 bits/sec, 0 packets/sec
 0 input drops, 0 output drops, 0 unknown protocols
 11441 packets input, 1814527 bytes
 7486 broadcasts received, 0 giants
 0 input errors, 0 CRC
 4954 packets output, 336299 bytes
 0 output errors, 0 collisions

Services is down, line protocol is down
 Physical address is b4:b0:17:8f:fc:53
 Internet address is 192.11.13.6, mask is 255.255.255.252
 MTU 1500 bytes, Bandwidth 10000 kbit
 Reliability 1/255 txLoad 1/255 rxLoad 1/255
 Encapsulation ARPA
 Link status trap enabled
 Half-duplex, 10Mb/s, 10BaseTX
 ARP type: ARPA, ARP Timeout 04:00:00
 Last input never, Last output never
 Last clearing of 'show interface' counters never
 5 minute input rate 0 bits/sec, 0 packets/sec
 5 minute output rate 0 bits/sec, 0 packets/sec
 0 input drops, 0 output drops, 0 unknown protocols
 0 packets input, 0 bytes
 0 broadcasts received, 0 giants
 0 input errors, 0 CRC
 0 packets output, 0 bytes
 0 output errors, 0 collisions

FastEthernet 10/3 is down, line protocol is down
 Physical address is b4:b0:17:8f:fc:51
 MTU 1500 bytes, Bandwidth 10000 kbit
 IPSec PMTU: copy df-bit, Min PMTU is 300
 Reliability 1/255 txLoad 1/255 rxLoad 1/255
 Encapsulation ARPA
 Link status trap enabled
 Keepalive not set
 Half-duplex, 10Mb/s, 10BaseTX
 ARP type: ARPA, ARP Timeout 04:00:00
 Last input never, Last output never
 Last clearing of 'show interface' counters never
 5 minute input rate 0 bits/sec, 0 packets/sec
 5 minute output rate 0 bits/sec, 0 packets/sec
 0 input drops, 0 output drops, 0 unknown protocols
 0 packets input, 0 bytes
 0 broadcasts received, 0 giants
 0 input errors, 0 CRC
 0 packets output, 0 bytes
 0 output errors, 0 collisions

FastEthernet 10/4 is down, line protocol is down
 Physical address is b4:b0:17:8f:fc:52
 MTU 1500 bytes, Bandwidth 10000 kbit
 IPSec PMTU: copy df-bit, Min PMTU is 300
 Reliability 1/255 txLoad 1/255 rxLoad 1/255
 Encapsulation ARPA
 Link status trap enabled
 Keepalive not set
 Half-duplex, 10Mb/s, 10BaseTX
 ARP type: ARPA, ARP Timeout 04:00:00
 Last input never, Last output never
 Last clearing of 'show interface' counters never
 5 minute input rate 0 bits/sec, 0 packets/sec
 5 minute output rate 0 bits/sec, 0 packets/sec
 0 input drops, 0 output drops, 0 unknown protocols
 0 packets input, 0 bytes
 0 broadcasts received, 0 giants
 0 input errors, 0 CRC
 0 packets output, 0 bytes
 0 output errors, 0 collisions

Console asynchronous mode is terminal
Cable type: terminal
Terminal baud rate is 9600

USB-Modem is not-present
Description: Default Modem Setup
 Internet address is 10.3.248.253, mask is 255.255.255.252
 MTU 1500 bytes
 Encapsulation PPP
 Link status trap disabled
 Keepalive set (10 sec)
 Authentication RAS
 Last peer authentication attempt: passed
 PPP timeout absolute: 10
 Modem type: MultiTech-ZBA
 Modem init string: AT S7=45 S0=2 V1 X4 &c1 E0 Q0
 Last input never, Last output never
 Last clearing of 'show interface' counters never
 5 minute input rate 0 bits/sec, 0 packets/sec
 5 minute output rate 0 bits/sec, 0 packets/sec
 0 input drops, 0 output drops, 0 unknown protocols
 0 packets input, 0 bytes
 0 broadcasts received, 0 giants
 0 input errors, 0 CRC, 0 abort
 0 packets output, 0 bytes
 0 output errors, 0 collisions, 0 carrier transitions
Done!
springfield-g450-143(super)#
springfield-g450-143(super)# show port
Port   Name             Status    Vlan Level  Neg     Dup. Spd. Type
------ ---------------- --------- ---- ------ ------- ---- ---- ----------------
10/5   NO NAME          no link   1     0     enable  full 1G   Avaya Inc., G450
 Media Gateway 10/100/1000BaseTx Port 10/5
10/6   NO NAME          connected 1     0     enable  full 100M Avaya Inc., G450
 Media Gateway 10/100/1000BaseTx Port 10/6
--------------------------------------------------------------------------------
springfield-g450-143(super)# show start

! version 30.12.1
ds-mode t1
Config info release 30.12.1 time "18:31:07 19 AUG 2013 " serial_number 10N551704
946
encrypted-username HSdQdA0FtNsq15WeQh/Rwg== password 2gD9/YAeL+jdyrYOCZZ1Y1W+qfx
geC8OZG4vJL1sWh4= access-type znlewvrpkN0bMINFnmkODA==
hostname "springfield-g450"
set logging file enable
set logging file condition all Error
set logging file condition BOOT Debug
no ip telnet
encrypted-snmp-server community read-only E/bBPkNU4Xgl2cwg158Ugw== read-write 9M
CImkrpvqsaAfeBsmTaIf9LaTUxrULo/08oecivAB4=
ispringfield-g450-143(super)# nterface Vlan 1
icc-vlan
ip address 172.19.40.200   255.255.255.0
pmi
exit
interface FastEthernet 10/3
exit
interface FastEthernet 10/4
exit
interface Console
exit
interface USB-Modem
description "Default Modem Setup"
timeout absolute 10
ppp authentication ras
no shutdown
ip address 10.3.248.253    255.255.255.252
exit
ip default-gateway 172.19.40.1     1 low
set mgc list 172.18.0.50,172.18.0.51,172.19.40.201
set mediaserver 172.18.0.50 172.18.0.50 23 telnet
set mediaserver 172.18.0.50 172.18.0.50 5023 sat
set mediaserver 172.18.0.51 172.18.0.51 23 telnet
set mediaserver 172.18.0.51 172.18.0.51 5023 sat
set mediaserver 172.19.40.201 172.19.40.201 23 telnet
set mediaserver 172.19.40.201 172.19.40.201 5023 sat
set reset-times primary-search 5
set reset-times total-search 10
set sync interface primary v6
set sync source primary
rtp-stat qos-trap
no rtp-stat fault
ip license-server
analog-test
exit
!#
!# End of configuration file. Press Enter to continue.

springfield-g450-143(super)#


A great teacher does not provide answers, but methods to teach others "How and where to find the answers"

bsh

49 years Bell, AT&T, Lucent, Avaya
Tier 3 for 39 years and counting
[URL unfurl="true"]http://bshtele.com[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top