|
| |
精品推荐 |
 |
|
| |
|
|
|
|
CCNA网络小菜鸟笔记
|
日期:2007年7月15日 作者: 查看:[大字体
中字体 小字体]
|
要在FastEthernet端口上支持ISL或802.1Q路由,路由器的接口就需要分成逻辑上的接口,每个VLAN都需要一个逻辑接口。这些接口称为子接口。 默认时不能在1900交换机和2950交换机之间提供中继,理解这一点是很重要的,因为1900交换机只支持ISL路由,而2950交换机只支持820.1Q路由,默认时这两种中继方法是不兼容的。 对于到1900 trunk端口(ISL)的连接,可使用如下命令: 2600#config t 2600(config)#int f0/0.1 2600(config-subif)#encapsulation isl vlan# 要实现到2950交换机(802.1Q)的路由器中继连接,可使用下列命令: 2600(config)#int f0/0.1 2600(config-subif)#encapsulation dot1q vlan# 要理解每个VLAN都是独立的子网,这一颠很重要。 配置VTP 所有的交换机,在默认时都配置为VTP服务器。要配置VTP,首先必须配置你想要使用的VTP域名。 在创建VTP域时,有一些选项,包括设置域名、口令、操作模式和交换机的修建功能。可使用VTP全局配置模式命令来设置所有这些信息。在下面的列兹中,我将交换机设置为VTP server,将VTP域名设置为Cisco,将VTP口令设置为12345: 1900(config)#vtp server 1900(config)#vtp domain Cisco 1900(config)#vtp password 12345 默认时所有的交换机都设置为VTP服务器模式,如果想在交换机上改动任何有关VLAN的信息,都必须在VTP服务器模式下进行。 在2950交换机上配置VTP,同样要首先配置想要使用的域名。同样,一旦在交换机上配置了VTP信息,就需要验证它。可使用VTP全局配置模式命令来设置这些信息。 例子中,把交换机设置为服务器模式,域名设置为SZ_Lab Switch(config)#vtp mode server Switch(config)#vtp domain SZ_Lab 配置示例互联网络中的交换 先配置2950C,如下 2950C(config)#enable secret noko 2950C(config)#line con 0 2950C(config-line)#login 2950C(config-line)#password noco 2950C(config-line)#line vty 0 15 2950C(config-line)#login 2950C(config-line)#password noco 2950C(config-line)#banner motd # 2950C # 2950C(config-line)#exit 2950C(config)#int vlan1 2950C(config-if)#ip address 172.16.10.2 255.255.255.0 2950C(config-if)#no shut 2950C(config-if)#exit 2950C(config)#up default-gateway 172.16.10.1 2950C(config)#^Z 2950C#copy run start 配置2950B,如下: 2950B(config)#enable secret noko 2950B(config)#line con 0 2950B(config-line)#login 2950B(config-line)#password noco 2950B(config-line)#line vty 0 15 2950B(config-line)#login 2950B(config-line)#password noco 2950B(config-line)#banner motd # 2950B # 2950B(config-line)#exit 2950B(config)#int vlan1
上一篇:资料分享——CCNP-CIT中文笔记(一)
下一篇:CCIE的学习方法和能力定位之经验谈
|
| 相关文章: |
|
|
|
| 相关软件: |
|
|
|
|