Cisco思科路由与交换机配置问题VLAN和OSPF和EIGRP。

 题目1—VLAN   2、IP地址要求:各网段IP地址均使用172.16.0.0的子网,子网掩码:255.255.255.0  3、实验要求   1)在两台交换机上配置VTP,将两台交换机配置到同一个VTP域中,并将3560交换机配置成server,将2950交换机配置成client。  2)在server上创建两个vlan,vlan 2和vlan3  3)把PC0和PC1分别指派到两个vlan内。  4)使用三层交换机实现Vlan间路由,实现两个Vlan的连通  题目2—OSPF  2、实验要求   1)  按拓扑图的IP地址要求配置路由器各接口和主机IP地址   2)  在两台路由器上配置OSPF协议   3)  查看路由表并验证网络连通性 题目3—EIGRP   2、实验要求    1)  按拓扑图的IP地址要求配置路由器各接口和主机IP地址    2)  在两台路由器上配置EIGRP协议    3)  查看路由表并验证网络连通性  

第1个回答  2011-11-06
执行基本交换机配置:
Switch>enable
Switch#configure terminal
Switch(config)#hostname S1
S1(config)#enable secret class
S1(config)#no ip domain-lookup
S1(config)#line console 0
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#line vty 0 15
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#end
交换机上的中继端口配置中继和本征 VLAN
S1(config)#interface fa0/1
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk native vlan 99
S1(config-if)#no shutdown
S1(config-if)#interface fa0/2
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk native vlan 99
S1(config-if)#no shutdown
S1(config-if)#end

vlan 2 —— 创建vlan
模式配置:switch(config)#vtp mode server
vtp mode client
vtp mode transparent
Switch0(config)#vtp domain vtp1 设置vtp域名称
Switch0(config)#vtp password vtp 设置vtp域的密码
Switch0(config)#vtp version 2 设置vtp域的版本
配置OSPF协议:在全局模式下,router ospf 1,passive-interface __(跟端口)

验证网络连通性:show ip eigrp neighbors
相似回答