Sie sind auf Seite 1von 1

Configure router for inter VLAN routing

Interfaces:
interface GigabitEthernet0/2
switchport mode access
switchport access vlan 10
!
interface GigabitEthernet0/3
switchport mode access
switchport access vlan 20
!
interface GigabitEthernet0/0
switchport trunk allowed vlan 10,20
switchport trunk encapsulation dot1q
switchport mode trunk

Inter VLAN routing configuration


Router(config)interface GigabitEthernet0/0
no shutdown

Router(config)#interface gigabitEthernet 0/1.?


<0-4294967295> GigabitEthernet interface number

interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 10.1.1.1 255.255.255.0
no shutdown

interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.0.1 255.255.255.0
no shutdown

Das könnte Ihnen auch gefallen