Professional Documents
Culture Documents
S_A(config)#int f 0/2
S_A(config-if)#no switchport
S_A(config-if)#ip address 20.1.1.10 255.0.0.0
S_A(config-if)#no shutdown
Verification
S_A#show ip route
C 10.0.0.0/8 is directly connected, FastEthernet0/1C
20.0.0.0/8 is directly connected, FastEthernet0/2
S_A#ping 20.1.1.1
S_A#ping 10.1.1.1
PC>arp -a
Internet Address Physical Address Type
10.1.1.10 0006.2ace.6e01 Dynamic
S_A#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.1.1.1 4 0060.475D.1820 ARPA FastEthernet0/1
Internet 10.1.1.10 - 0006.2ACE.6E01 ARPA FastEthernet0/1
Internet 20.1.1.1 4 0040.0B39.42D0 ARPA FastEthernet0/2
Switch(config)#vlan 10
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#exit
Switch(config)#ip routing
Note:- IP Routing Command we can run only on Layer 3 Switch, Layer 2 Switches
will not Support IP Routing Command.
Create SVI
Switch(config)#interface vlan 10
Switch(config-if)#ip address 10.1.1.1 255.0.0.0
Switch(config-if)#exit
Switch(config)#int vlan 20
Switch(config-if)#ip address 20.1.1.1 255.0.0.0
Switch(config-if)#exit
Switch#show ip route
A(config)#ip routing
A(config)#vlan 10
A(config-vlan)#exit
A(config)#int vlan 10
A(config-if)#ip address 10.1.1.10 255.0.0.0
A(config-if)#exit
A#show ip route
C 10.0.0.0/8 is directly connected, Vlan10
C 100.0.0.0/8 is directly connected, FastEthernet0/1
B(config)#ip routing
B(config)#vlan 20
B(config-vlan)#exit
B(config)#interface vlan 20
B(config-if)#ip address 20.1.1.10 255.0.0.0
B(config-if)#exit
B#show ip route
C 20.0.0.0/8 is directly connected, Vlan20
C 100.0.0.0/8 is directly connected, FastEthernet0/1
A(config)#router ospf 1
A(config-router)#network 10.0.0.0 0.255.255.255 a 0
A(config-router)#network 100.0.0.0 0.255.255.255 a 0
A(config-router)#exit
B(config)#router ospf 1
B(config-router)#network 20.0.0.0 0.255.255.255 a 0
B(config-router)#network 100.0.0.0 0.255.255.255 a 0
B(config-router)#exit