RE: Easiest way to find secondary IP addresses

From: Robert Hosford <rhosford_at_certifiednets.com>
Date: Mon, 17 Jun 2013 14:56:17 +0000

Gilles,

Thanks for the input! I think youbre correct that this is the easiest way to see the secondary IP address. I think it will take a TCL script to display the output like this. I just donbt know how to do it.

Something like this.
Tunnel100 is up, Internet address is 172.30.2.1/24, Tunnel source 172.20.2.1, maps to Ethernet0/0.15, Secondary address 172.20.2.1/24

Would anyone else find this kind of command useful? Anyone have an idea how to do this with TCL?

Thanks,

Robert

Router#sh ip int | in (is up, |Seco)
Ethernet0/0 is up, line protocol is up
Ethernet0/0.15 is up, line protocol is up
  Secondary address 172.20.2.1/24
  Secondary address 172.20.22.1/24
Ethernet0/0.40 is up, line protocol is up
Ethernet0/0.78 is up, line protocol is up
Ethernet0/0.79 is up, line protocol is up
Ethernet0/1 is up, line protocol is up
Ethernet0/1.70 is up, line protocol is up
Ethernet0/1.71 is up, line protocol is up
Loopback0 is up, line protocol is up
Loopback103 is up, line protocol is up
Tunnel0 is up, line protocol is down
Tunnel100 is up, line protocol is down
Tunnel102 is up, line protocol is down
  Secondary address 172.20.3.1/24

Router#sh int tun 100
Tunnel100 is up, line protocol is down
  Hardware is Tunnel
  Internet address is 172.30.2.1/24
  MTU 17916 bytes, BW 100 Kbit/sec, DLY 50000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation TUNNEL, loopback not set
  Keepalive not set
  Tunnel source 172.20.2.1, destination 172.10.10.10
  Tunnel protocol/transport GRE/IP
    Key disabled, sequencing disabled
    Checksumming of packets disabled
  Tunnel TTL 255, Fast tunneling enabled
  Tunnel transport MTU 1476 bytes
  Tunnel transmit bandwidth 8000 (kbps)
  Tunnel receive bandwidth 8000 (kbps)
  Last input never, output never, output hang never
  Last clearing of "show interface" counters 5d18h
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 54
  Queueing strategy: fifo
  Output queue: 0/0 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     54 packets output, 2826 bytes, 0 underruns
     0 output errors, 0 collisions, 0 interface resets
     0 unknown protocol drops
     0 output buffer failures, 0 output buffers swapped out

From: Gilles Fabre [mailto:fabre.gilles_at_voila.fr]
Sent: Saturday, June 15, 2013 12:51 PM
To: Robert Hosford; ccielab_at_groupstudy.com
Subject: re: Easiest way to find secondary IP addresses

I think "show ip interface EthernetX/X" should display the secondary address

Best regards,
Gilles
> Message du 13/06/13 C 23h19
> De : "Robert Hosford"
> A : "ccielab_at_groupstudy.com<mailto:ccielab_at_groupstudy.com>"
> Copie C :
> Objet : Easiest way to find secondary IP addresses
>
> HI List,
>
> I am looking for the easiest way to find secondary IP addresses without doing
> a sh run | in (interface|ip address).
>
> Sh ip ro is no good. I see the address but I don't know which is the
> secondary.
>
> Router>sh ip ro | in L
> Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
> L 172.20.2.1/32 is directly connected, Ethernet0/0.15
> L 192.168.15.2/32 is directly connected, Ethernet0/0.15
> L 192.168.34.1/32 is directly connected, Loopback103
> L 192.168.40.1/32 is directly connected, Ethernet0/0.40
> L 192.168.70.1/32 is directly connected, Ethernet0/1.70
> L 192.168.71.1/32 is directly connected, Ethernet0/1.71
>
>
> Router>en
> Router#sh run int e0/0.15
> Building configuration...
>
> Current configuration : 178 bytes
> !
> interface Ethernet0/0.15
> encapsulation dot1Q 15
> ip address 172.20.2.1 255.255.255.0 secondary
> ip address 192.168.15.2 255.255.255.0
> end
>
> Router#
> Gateway-rtr#sh ip int brie
> Interface IP-Address OK? Method Status
> Protocol
> FastEthernet0/0 unassigned YES NVRAM up
> up
> FastEthernet0/0.15 192.168.15.2 YES NVRAM up
> up
> FastEthernet0/0.40 192.168.40.1 YES NVRAM up
> up
> FastEthernet0/0.78 192.168.33.1 YES TFTP up
> up
> FastEthernet0/0.79 192.168.34.1 YES TFTP up
> up
> Serial0/0 unassigned YES NVRAM administratively down
> down
> FastEthernet0/1 unassigned YES NVRAM up
> up
> FastEthernet0/1.70 192.168.70.1 YES NVRAM up
> up
> FastEthernet0/1.71 192.168.71.1 YES NVRAM up
> up
> Serial0/1 unassigned YES NVRAM administratively down
> down
> Loopback0 192.168.14.1 YES NVRAM up
> up
> Loopback103 192.168.34.1 YES manual up
> up
> Tunnel0 unassigned YES NVRAM up
> up
> Tunnel100 172.30.2.1 YES manual up
> up
> Tunnel102 192.168.33.1 YES manual up
> up
> Gateway-rtr#
>
>
> Sh ip alias is no good.
>
> Gateway-rtr#sh ip alias
> Address Type IP Address Port
> Interface 172.20.2.1
> Interface 172.20.3.1
> Interface 172.30.2.1
> Interface 192.168.14.1
> Interface 192.168.15.2
> Interface 192.168.33.1
> Interface 192.168.34.1
> Interface 192.168.40.1
> Interface 192.168.70.1
> Interface 192.168.71.1
> Gateway-rtr#
>
>
> Show interface also doesn't work.
> Router#sh int
> Ethernet0/0 is up, line protocol is up
> Hardware is AmdP2, address is aabb.cc00.0100 (bia aabb.cc00.0100)
> MTU 1500 bytes, BW 10000 Kbit/sec, DLY 1000 usec,
> reliability 255/255, txload 1/255, rxload 1/255
> Encapsulation 802.1Q Virtual LAN, Vlan ID 1., loopback not set
> Keepalive set (10 sec)
> ARP type: ARPA, ARP Timeout 04:00:00
> Last input 00:00:02, output 00:00:02, output hang never
> Last clearing of "show interface" counters never
> Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
> Queueing strategy: fifo
> Output queue: 0/40 (size/max)
> 5 minute input rate 0 bits/sec, 0 packets/sec
> 5 minute output rate 0 bits/sec, 0 packets/sec
> 1467 packets input, 495360 bytes, 0 no buffer
> Received 1467 broadcasts (0 IP multicasts)
> 0 runts, 0 giants, 0 throttles
> 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
> 0 input packets with dribble condition detected
> 1126 packets output, 154862 bytes, 0 underruns
> 0 output errors, 0 collisions, 1 interface resets
> 7 unknown protocol drops
> 0 babbles, 0 late collision, 0 deferred
> 0 lost carrier, 0 no carrier
> 0 output buffer failures, 0 output buffers swapped out
> Ethernet0/0.15 is up, line protocol is up
> Hardware is AmdP2, address is aabb.cc00.0100 (bia aabb.cc00.0100)
> Internet address is 192.168.15.2/24
> MTU 1500 bytes, BW 10000 Kbit/sec, DLY 1000 usec,
> reliability 255/255, txload 1/255, rxload 1/255
> Encapsulation 802.1Q Virtual LAN, Vlan ID 15.
> ARP type: ARPA, ARP Timeout 04:00:00
> Keepalive set (10 sec)
> Last clearing of "show interface" counters never
>
>
> Does anyone have any ideas?
>
> Thanks,
>
> Robert
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>

________________________________
Que sont devenues les anciennes Miss France ? Diaporama people C voir sur Voila.fr<http://people.voila.fr/people/mediatheque/dossiers/miss-france-que-sont-devenues-les-anciennes-miss/>

Blogs and organic groups at http://www.ccie.net
Received on Mon Jun 17 2013 - 14:56:17 ART

This archive was generated by hypermail 2.2.0 : Mon Jul 01 2013 - 06:58:42 ART