Inter vlan Routing

Router(config)#hostname R1
R1(config)#no ip domain-lookup
R1(config)#line con 0
R1(config-line)#exec-timeout 0 0  //Console bağlantısı asla time out olmayacak
R1(config-line)#logging synchronous //Turns on synchronous logging.
 Information items sent to console will not interrupt the command you are typing.
The command will be moved to a new line

R1(config)#banner motd # R1
Enter TEXT message.  End with the character '#'.
Inter Vlan Routing Lab icin #
R1(config)#exit


Router(config)#hostname R3
R3(config)#banner motd ^
Enter TEXT message.  End with the character '^'.
R3 router
Inter vlan routing icin
^
R3(config)#line con 0
R3(config-line)#exec-timeout 0 0
R3(config-line)#logging synchronous 
R3(config-line)#exit
R3(config)#no ip domain lookup


Switch#conf t
Switch(config)#hostname D1
D1(config)#no ip domain-lookup
D1(config)#line con 0
D1(config-line)#exec-timeout 0 0
D1(config-line)#logging synchronous 
D1(config-line)#exit
D1(config)#banner motd ^
Enter TEXT message.  End with the character '^'.
D1 Switch
Inter vlan routing icin^

Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#hostname D2
D2(config)#line con 0
D2(config-line)#exec-time
D2(config-line)#exec-timeout 0 0
D2(config-line)#loggi
D2(config-line)#logging syn
D2(config-line)#logging synchronous 
D2(config-line)#exit
D2(config)#no ip domain-lookup
D2(config)#banner motd ^
Enter TEXT message.  End with the character '^'.
D2 Switch
Inter vlan routing icin^


D1 Üzerinde Inter-Vlan Routing


D1(config)#ip routing 
D1(config)#ipv6 unicast-routing
D1(config)#vlan 50
D1(config-vlan)#name Group50
D1(config-vlan)#exit
D1(config)#vlan 60
D1(config-vlan)#name Group60
D1(config-vlan)#exit

İnterface altına Vlanları tanımla 

D1(config)#int gig1/0/2
D1(config-if)#switchport mode access 
D1(config-if)#switchport access vlan 50
D1(config-if)#no shutdown
D1(config-if)#int gig1/0/3
D1(config-if)#switchport mode access 
D1(config-if)#switchport access vlan 60
D1(config-if)#no shutdown 

Switched Virtual Interface(SVI) vlan 50 ve vlan 60 destekleyecek.

D1(config)#interface vlan 50
D1(config-if)#
%LINK-5-CHANGED: Interface Vlan50, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan50, changed state to up

D1(config-if)#ip add 10.2.50.1 255.255.255.0
D1(config-if)#ipv6 add fe80::d1:2 link-local
D1(config-if)#ipv6 add 2001:db8:acad:1050::d1/64
D1(config-if)#no shut
D1(config-if)#int vlan 60
D1(config-if)#
%LINK-5-CHANGED: Interface Vlan60, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan60, changed state to up

D1(config-if)#ip add 10.2.60.1 255.255.255.0
D1(config-if)#ipv6 add fe80::d1:3 link-local
D1(config-if)#ipv6 add 2001:db8:acad:1060::d1/64
D1(config-if)#no shut
D1(config-if)#exit

Last updated