Command
click below
click below
Command
Normal Size Small Size show me how
CCNA
Router-on-a-Stick Configuration
Command | Description |
---|---|
R1(config)# interface Fa0/0 | (select the main interface) |
R1(config-if)# no ip address | (there should not be any IP Address on the main interface) |
R1(config-if)# interface Fa0/0.10 | (create a sub-interface – the number can be anything) |
R1(config-if)# encapsulation dot1q 10 | (use 802.1Q trunking; assign to this VLAN #) |
R1(config-if)# ip address 172.16.10.1 255.255.255.255 | (define the default-gateway IP) |
R1(config-if)# interface Fa0/0.99 | (create another sub-interface - this one for native traffic) |
R1(config-if)# encapsulation dot1q 99 native | (802.1Q trunking; VLAN #; and native) |
R1(config)# ip classless | (classless routing behavior – default in IOS 11.3+) |
R1(config)# no ip classless | (classful routing behavior) |