GlennComiskey
Technical User
Hi,
If I assign a secondary IP address from a different network to an ethernet interface, does the router perform routing between the two networks?
I.E. -
ip address 192.168.1.254 255.255.255.0
ip address 192.168.2.254 255.255.255.0 secondary
C2503>show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP, D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area, N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2, E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP, i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default, U - per-user static route, o - ODR
Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, Ethernet0
C 192.168.2.0/24 is directly connected, Ethernet0
C2900>show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -----
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4, Fa0/5, Fa0/6, Fa0/7, Fa0/8, Fa0/9, Fa0/10, Fa0/11, Fa0/12, Fa0/13, Fa0/14, Fa0/15, Fa0/16, Fa0/17, Fa0/18, Fa0/19, Fa0/24
2 VLAN0002 active Fa0/19, Fa0/20
3 VLAN0003 active Fa0/21
4 VLAN0004 active Fa0/22
5 VLAN0005 active Fa0/23
PC default gateway is 192.168.1.254 and want to connect to device 192.168.2.54: PC network 192.168.1.100 (Fa0/7) > Switch port Fa0/19 > Router > Internal routing > Router > Switch port Fa0/19 > Network device 192.168.2.54 (Fa0/20)
If I assign a secondary IP address from a different network to an ethernet interface, does the router perform routing between the two networks?
I.E. -
ip address 192.168.1.254 255.255.255.0
ip address 192.168.2.254 255.255.255.0 secondary
C2503>show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP, D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area, N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2, E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP, i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default, U - per-user static route, o - ODR
Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, Ethernet0
C 192.168.2.0/24 is directly connected, Ethernet0
C2900>show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -----
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4, Fa0/5, Fa0/6, Fa0/7, Fa0/8, Fa0/9, Fa0/10, Fa0/11, Fa0/12, Fa0/13, Fa0/14, Fa0/15, Fa0/16, Fa0/17, Fa0/18, Fa0/19, Fa0/24
2 VLAN0002 active Fa0/19, Fa0/20
3 VLAN0003 active Fa0/21
4 VLAN0004 active Fa0/22
5 VLAN0005 active Fa0/23
PC default gateway is 192.168.1.254 and want to connect to device 192.168.2.54: PC network 192.168.1.100 (Fa0/7) > Switch port Fa0/19 > Router > Internal routing > Router > Switch port Fa0/19 > Network device 192.168.2.54 (Fa0/20)