before we go into the SW1 and configure SVI and routed port, let’s prepare the R1 and R2 first
configure addressing for R1 interfaces, and enable routing protocol
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip add 10.0.0.2 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int lo 0
R1(config-if)#ip add 10.1.1.1 255.255.255.255
R1(config)#router eigrp 1
R1(config-router)#no auto-summary
R1(config-router)#net 0.0.0.0
verify all interfaces are advertised by EIGRP, do the same to check on R2 later
R1(config-router)#do sh ip ei int
IP-EIGRP interfaces for process 1
Xmit Queue Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Fa0/0 0 0/0 0 0/1 0 0
Lo0 0 0/0 0 0/1 0 0
configure R2
R2(config)#int fastEthernet 0/0
R2(config-if)#ip add 172.16.0.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#int fa 0/1
R2(config-if)#ip add 192.168.0.99 255.255.255.0
R2(config-if)#no shut
R2(config)#router eigrp 1
R2(config-router)#no auto-summary
R2(config-router)#network 0.0.0.0
now let’s get to our main topic, routing on switch using Switch Virtual Interface and enabling routing on layer 2 switchport by converting it to layer 3 routed port.
first we need to enable routing on SW1
SW1(config)#ip routing
create VLAN 10 and assign access port to it
SW1(config)#vlan 10
SW1(config-vlan)#name LAB
SW1(config)#int gi 0/47
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 10
configure EIGRP
SW1(config)#router eigrp 1
SW1(config-router)#no auto-summary
SW1(config-router)#net 0.0.0.0
create VSI for VLAN 10
SW1(config)#interface vlan 10
SW1(config-if)#ip add 10.0.0.1 255.255.255.0
now SW1 should be able to route any traffic coming from access port VLAN 10 to other VLAN or network and vice versa. verify this
SW1#sh ip route
…
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.0.0 is directly connected, GigabitEthernet0/48
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.0.0.0/24 is directly connected, Vlan10
D 10.1.1.1/32 [90/130816] via 10.0.0.2, 00:51:28, Vlan10
D 192.168.0.0/24 [90/30720] via 172.16.0.2, 00:23:12, GigabitEthernet0/48
for the other side, on interface that connected to R2, we’ll change the switchport into a layer 3 routed port, only using one command ‘no switchport’
SW1(config)#interface gi 0/48
SW1(config-if)#no switchport
SW1(config-if)#ip add 172.16.0.1 255.255.255.0
SW1(config-if)#no shut
verify this by ping from pc to loopback 0, ping success, meaning both our SVI and L3 routed port are working correctly.
Pinging 10.1.1.1 with 32 bytes of data:
Reply from 10.1.1.1: bytes=32 time=9ms TTL=253
Reply from 10.1.1.1: bytes=32 time=1ms TTL=253
Reply from 10.1.1.1: bytes=32 time=1ms TTL=253
Reply from 10.1.1.1: bytes=32 time=1ms TTL=253
C:\Windows\System32>tracert 10.1.1.1
Tracing route to 10.1.1.1 over a maximum of 30 hops
1 5 ms <1 ms <1 ms 192.168.0.99
2 2 ms 4 ms 4 ms 172.16.0.1
3 2 ms 1 ms 1 ms 10.1.1.1
pls tell me - it is possible to provide ip address on fa/gi interface in GNS3. if yser then how and what is the IOS for that ? pls help me its urgent.
ReplyDeletei have searched it but find nothing .