ROUTER SUB-INTERFACE OLUŞTURMA



 


Router üzerinde  sub-interface uygulayarak bütün vlanların geçmesini sağlıyoruz. Bu şekilde Routerın fa0/0 portundan vlan 10 ve 20 geçebiliyor. Vlanlar router üzerinden haberleşebiliyor.

SWİTCH 0 (soldaki switch)

Switch>enable

Switch#conf t

Switch(config)#vlan 10

Switch(config-vlan)#name vlan-10

Switch(config-vlan)#exit

Switch(config)#vlan 20

Switch(config-vlan)#name vlan-20

Switch(config-vlan)#exit

Switch(config)#interface fastEthernet 0/1

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 10

Switch(config-if)#exit

Switch(config)#interface fastEthernet 0/2

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 20

Switch(config-if)#exit

Switch(config)#interface fastEthernet 0/3

Switch(config-if)#switchport mode trunk

 

SWİTCH 1 (sağdaki switch)

Switch>enable

Switch#conf t

Switch(config)#vlan 10

Switch(config-vlan)#name vlan-10

Switch(config-vlan)#exit

Switch(config)#vlan 20

Switch(config-vlan)#name vlan-20

Switch(config-vlan)#exit

Switch(config)#interface fastEthernet 0/1

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 10

Switch(config-if)#exit

Switch(config)#interface fastEthernet 0/2

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 20

Switch(config-if)#exit

Switch(config)#interface fastEthernet 0/3

Switch(config-if)#switchport mode trunk

 

ROUTER

Router>enable

Router#conf t

Router(config)#interface fastEthernet 0/0

Router(config-if)#no ip address

Router(config-if)#no shutdown

Router(config-if)#exit

Router(config)#interface fastEthernet 0/0.10

Router(config-subif)#encapsulation dot1Q 10                        //vlan 10

Router(config-subif)#ip address 192.168.1.1 255.255.255.0  //gateway 1.1 verdik pclere

Router(config-subif)#exit

Router(config)#interface fastEthernet 0/0.20    

                  

Router(config-subif)#encapsulation dot1q 20                           //vlan 20


Router(config-subif)#ip address 192.168.2.1 255.255.255.0    // gateway 2.1 verdik pclere


Router(config-subif)#exit



Bu blogdaki popüler yayınlar

PUTTY CONSOLE BAĞLANTISI

HUAWEİ-CİSCO LACP AYARLARI

LİNUX SCRİPT İLE DOSYADAN DOSYAYA VERİ AKTARMA

ROUTER ÜZERİNDEN HABERLEŞME

LİNUX SERVİSLERİLERİNİ KONTROL ETMEK