随笔分类 - 交换机的配置
摘要:拓扑图 单臂路由实现vlan间的通信 首先要用到vtp协议 switch 5 配置 Switch(config)#vtp domain test switch 4配置 Switch(config)#vtp domain testChanging VTP domain name from NULL t
阅读全文
摘要:拓扑图 用三层交换机实现vlan间的通信 首先要用到vtp协议 switch 1 配置 Switch(config)#vtp domain test switch 2 配置 Switch(config)#vtp domain testChanging VTP domain name from NUL
阅读全文
摘要:拓扑图 将四个交换机连在一起形成环路 为了解决环路问题,交换机会自动进行选举,选举出一个根桥,根桥交换机会决定一个最佳路径,然后将各个交换机端口设置为不同的端口角色, 使一些端口进入阻塞模式 选举 交换机会先去比较之间的优先值(cisco 交换机默认为32768) ,当优先值相同时比较mac地址,最
阅读全文
摘要:拓扑图 在switch 1与switch 2 之间建立以太通道,提高网络性能 进入全局配置模式,在全局配置模式下创建以太通道,使用命令nterface port-channel Switch#conf t Switch(config)# Switch(config)#interface port-c
阅读全文
摘要:拓扑图 使用vtp来管理网络中交换机的vlan 首先为你的vlan域设置一个域名,所有隶属与一个vlan域中的交换机,必须是一个域名 使用命令vtp domain Switch(config)#vtp domain test Changing VTP domain name from NULL to
阅读全文
摘要:拓扑图 如图所示,四台交换机的IP地址网段相同,划分vlan后,只有相同vlan的主机才能通信 因为是跨交换机的vlan划分,所以两台交换机都要配置相同的vlan switch 1 配置内容 Switch>en Switch# Switch#conf t Switch(config)# vlan 1
阅读全文
摘要:拓扑图 如图所示,在未划分valn时,pc1与pc2都属于vlan1,IP地址属于同一网段,是可以通信的。 在交换机划分完vlan后,pc1属于vlan10,pc2属于vlan20,这时它们的IP地址虽然还属于同一网段,但是它们无法通信。 为两台计算机配置IP地址后,开始交换机的vlan划分配置 1
阅读全文
摘要:拓扑图 为服务器和交换机设置地址(vlan1的地址) 交换机 Switch(config)#int vlan1Switch(config-if)#ip addr 192.168.1.1 255.255.255.0Switch(config-if)#no shu Switch(config-if)#%
阅读全文
摘要:拓扑图 为路由器的接口 完成配置后进入特权模式,查看路由器的端口f0/0的mac地址 Router#show interfaces f0/0 FastEthernet0/0 is up, line protocol is up (connected) Hardware is Lance, addre
阅读全文
摘要:拓扑图 完成交换机的基础配置(如何配置基础配置)后,为了能够实现跨网段管理交换机,要为交换机配置缺省网关 进入到交换机的全局配置模式,使用ip default-gateway来为交换机添加缺省网关 sw1(config)#ip default-gateway 192.168.1.254 sw1(co
阅读全文
摘要:拓扑图 交换机初始化配置命令 计算机通过console口连接到交换机进行基础性息的设置 打开交换机配置界面输入命令enable进入特权模式,接着输入configure terminal进入全局配置模式 switch0> enable switch# configure terminal switch
阅读全文