Configuration
ExampleA Gigabit Ethernet interface is used for trunking IEEE 802.1Q VLANs. Subinterface 17 is used for VLAN 17, and subinterface 26 is used for VLAN 26. (Note that the subinterface numbers can be arbitrarily chosen and don't have to match the VLAN number. For convenience, the numbers can match, as in the example.) Figure 2-2 shows a network diagram. Figure 2-2. Network Diagram for the VLAN Interface Example
interface gigabitethernet 9/0/0.17 description VLAN 17 to Accounting Dept encapsulation dot1q 17 native ip address 192.168.88.1 255.255.255.0 interface gigabitethernet 9/0/0.26 description VLAN 26 to Engineering Dept encapsulation dot1q 26 ip address 192.168.100.1 255.255.255.0 |