Easiest way to find secondary IP addresses

From: Robert Hosford <rhosford_at_certifiednets.com>
Date: Tue, 11 Jun 2013 23:05:41 +0000

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
Received on Tue Jun 11 2013 - 23:05:41 ART

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