19.07.2013 Views

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Spanning Tree Protocol Port ID<br />

- When 2 switches are interconnected with multiple cross cables, the root port of the non-root<br />

bridge switch (SW2) is the port that connects to the lowest Port ID of the root bridge (SW1).<br />

SW1<br />

(1111.1111.1111)<br />

0/1 0/2 0/3 0/4<br />

SW1<br />

(1111.1111.1111)<br />

0/1 0/2 0/3 0/4 0/1 0/2 0/3 0/4<br />

SW2<br />

(2222.2222.2222)<br />

SW2<br />

(2222.2222.2222)<br />

Figure A6-8: Spanning Tree Protocol Port ID<br />

Router-on-a-Stick VLAN Trunking Encapsulation and IP Address Configuration<br />

- Below shows the configuration sequence of VLAN trunking encapsulation and IP address on a<br />

router subinterface in Router-on-a-Stick setup. The VLAN trunking encapsulation must be<br />

configured prior to configuring an IP address.<br />

RT1#conf t<br />

Enter configuration commands, one per line. End with CNTL/Z.<br />

RT1(config)#int fa0/0.1<br />

RT1(config-subif)#ip add 192.168.1.1 255.255.255.0<br />

% Configuring IP routing on a LAN subinterface is only allowed if that<br />

subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,<br />

or ISL VLAN.<br />

RT1(config-subif)#<br />

RT1(config-subif)#encapsulation ?<br />

dot1Q IEEE 802.1Q Virtual LAN<br />

isl Inter Switch Link - Virtual LAN encapsulation<br />

sde IEEE 802.10 Virtual LAN - Secure Data Exchange<br />

RT1(config-subif)#encapsulation dot1Q 1<br />

RT1(config-subif)#ip add 192.168.1.1 255.255.255.0<br />

RT1(config-subif)#^Z<br />

RT1#<br />

RT1#sh int fa0/0.1<br />

FastEthernet0/0.1 is up, line protocol is up<br />

Hardware is AmdFE, address is cc01.0520.0000 (bia cc01.0520.0000)<br />

Internet address is 192.168.1.1/24<br />

MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,<br />

reliability 255/255, txload 1/255, rxload 1/255<br />

Encapsulation 802.1Q Virtual LAN, Vlan ID 1.<br />

ARP type: ARPA, ARP Timeout 04:00:00<br />

RT1#<br />

254<br />

SW1<br />

(1111.1111.1111)<br />

0/1 0/2 0/3 0/4 0/1 0/2 0/3 0/4<br />

0/1 0/2 0/3 0/4<br />

SW2<br />

(2222.2222.2222)<br />

SW1<br />

(1111.1111.1111)<br />

0/1 0/2 0/3 0/4<br />

0/1 0/2 0/3 0/4<br />

SW2<br />

(2222.2222.2222)<br />

Copyright © 2008 Yap Chin Hoong<br />

yapchinhoong@hotmail.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!