您现在的位置: 天下网吧 >> 网吧焦点 >> 网吧技术 >> 网吧路由 >> 正文

虚拟局域网(VLAN)路由实例

[作者:中国IT实验室收集整… 来源:不详 时间:2012-11-15我来说两句

  1. 例一:
  
  设备选用Catalyst5500交换机1台,安装WS-X5530-E3管理引擎,多块WS-X5225R及WS-X5302路由交换模块,WS-X5302被直接插入交换机,通过二个通道与系统背板上的VLAN 相连,从用户角度看认为它是1个1接口的模块,此接口支持ISL。在交换机内划有3个虚拟网,分别名为default、qbw、rgw,通过WS-X5302实现虚拟网间路由
  以下加重下横线部分,如set system name 5500C为需设置的命令。
  
   设置如下:
  
  Catalyst 5500配置:
  
   begin
  
  set password $1$FMFQ$HfZR5DUszVHIRhrz4h6V70
  
  set enablepass $1$FMFQ$HfZR5DUszVHIRhrz4h6V70
  
  set prompt Console>
  
  set length 24 default
  
  set logout 20
  
  set banner motd ^C^C
  
  !
  
  #system
  
  set system baud 9600
  
  set system modem disable
  
  set system name 5500C
  
  set system location
  
  set system contact
  
  !
  
  #ip
  
  set interface SC0 1 10.230.4.240 255.255.255.0 10.230.4.255
  
   set interface SC0 up
  
  set interface sl0 0.0.0.0 0.0.0.0
  
  set interface sl0 up
  
  set ARP agingtime 1200
  
  set ip redirect  enable
  
  set ip unreachable  enable
  
  set ip fragmentation enable
  
  set ip route 0.0.0.0 10.230.4.15 1
  
  set ip alias default 0.0.0.0
  
  !
  
  #Command alias
  
  !
  
  #vtp
  
  set vtp domain hne
  
  set vtp mode server
  
  set vtp v2 disable
  
  set vtp pruning disable
  
  set vtp pruneeligible 2-1000
  
  clear vtp pruneeligible 1001-1005
  
  set vlan 1 name default type ethernet mtu 1500 said 100001 state active
  
  set vlan 777 name rgw type ethernet mtu 1500 said 100777 state active
  
  set vlan 888 name qbw type ethernet mtu 1500 said 100888 state active
  
  set vlan 1002 name fddi-default type fddi mtu 1500 said 101002 state active
  
  set vlan 1004 name fddinet-default type fddinet mtu 1500 said 101004 state active bridge 0x0 stp IEee
  
  set vlan 1005 name trnet-default type trbrf mtu 1500 said 101005 state active bridge 0x0 stp ibm
  
  set vlan 1003 name token-ring-default type trcrf mtu 1500 said 101003 state active parent 0 ring 0x0 mode srb aremaxhop 7 stemaxhop 7
  
  !
  
  #set boot command
  
  set boot config-register 0x102
  
  set boot system flash bootflash:cat5000-sup3.4-3-1a.bin
  
  !
  
  #module 1 : 2-port 1000BaseLX Supervisor
  
  set module name  1 
  
  set vlan 1  1/1-2
  
  set port enable   1/1-2
  
  !
  
  #module 2 : empty
  
  !
  
  #module 3 : 24-port 10/100BaseTX Ethernet
  
  set module name  3 
  
  set module enable 3
  
  set vlan 1  3/1-22
  
  set vlan 777 3/23
  
  set vlan 888 3/24
  
  set trunk 3/1 on isl 1-1005
  
  #module 4 empty
  
  !
  
  #module 5 empty
  
  !
  
  #module 6 : 1-port Route Switch
  
  set module name  6 
  
  set port lEVEl   6/1 normal
  
  set port trap    6/1 disable
  
  set port name    6/1
  
  set cdp enable  6/1
  
  set cdp interval 6/1 60
  
  set trunk 6/1 on isl 1-1005
  
  !
  
  #module 7 : 24-port 10/100BaseTX Ethernet
  
  set module name  7 
  
  set module enable 7
  
  set vlan 1  7/1-22
  
  set vlan 888 7/23-24
  
  set trunk 7/1 on isl 1-1005
  
  set trunk 7/2 on isl 1-1005
  
  !
  
  #module 8 empty
  
  !
  
  #module 9 empty
  
  !
  
  #module 10 : 12-port 100BaseFX MM Ethernet
  
  set module name  10 
  
  set module enable 10
  
  set vlan 1  10/1-12
  
  set port channel 10/1-4 off
  
  set port channel 10/5-8 off
  
  set port channel 10/9-12 off
  
  set port channel 10/1-2 on
  
  set port channel 10/3-4 on
  
  set port channel 10/5-6 on
  
  set port channel 10/7-8 on
  
  set port channel 10/9-10 on
  
  set port channel 10/11-12 on
  
  #module 11 empty
  
  !
  
  #module 12 empty
  
  !
  
  #module 13 empty
  
  !
  
  #switch port analyzer
  
  !set span 1 1/1 both inpkts disable
  
  set span disable
  
  !
  
  #cam
  
  set cam agingtime 1-2,777,888,1003,1005 300
  
  end
  
  5500C> (enable)
  
   WS-X5302路由模块设置:
  
   Router#wri t
  
  Building configuration...
  
   Current configuration:
  
  !
  
  version 11.2
  
  no service password-encryption
  
  no service udp-small-servers
  
  no service tcp-small-servers
  
  !
  
  hostname Router
  
  !
  
  enable secret 5 $1$w1kK$AJK69fGOD7BqKhKcSNBf6.
  
  !
  
  ip subnet-zero
  
  !
  
  interface Vlan1
  
   ip address 10.230.2.56 255.255.255.0
  
  !
  
  interface Vlan777
  
   ip address 10.230.3.56 255.255.255.0
  
  !
  
  interface Vlan888
  
   ip address 10.230.4.56 255.255.255.0
  
  !
  
  no ip classless
  
  !
  
  line con 0
  
  line aux 0
  
  line vty 0 4
  
   password router
  
   login
  
  !
  
  end
  
   Router#
  
   3.1. 例二:
  
  交换设备仍选用Catalyst5500交换机1台,安装WS-X5530-E3管理引擎,多块WS-X5225R在交换机内划有3个虚拟网,分别名为default、qbw、rgw,通过CiSCo3640路由器实现虚拟网间路由。交换机设置与例一类似。
  
  路由器Cisco3640,配有一块NM-1FE-TX模块,此模块带有一个快速以太网接口可以支持ISL。CiSCo3640快速以太网接口与交换机上的某一支持ISL的端口实现连接,如交换机第3槽第1个接口(3/1口)。
  
   Router#wri t
  
  Building configuration... 
  
  Current configuration:
  
  !
  
  version 11.2
  
  no service password-encryption
  
  no service udp-small-servers
  
  no service tcp-small-servers
  
  !
  
  hostname Router
  
  !
  
  enable secret 5 $1$w1kK$AJK69fGOD7BqKhKcSNBf6.
  
  !
  
  ip subnet-zero
  
  !
  
  interface FastEthernet1/0
  
  !
  
  interface FastEthernet1/0.1
  
   encapsulation isl 1
  
   ip address 10.230.2.56 255.255.255.0
  
  !
  
  interface FastEthernet1/0.2
  
  encapsulation isl 777
  
   ip address 10.230.3.56 255.255.255.0
  
  !
  
  interface FastEthernet1/0.3
  
   encapsulation isl 888
  
   ip address 10.230.4.56 255.255.255.0
  
  !
  
  no ip classless
  
  !
  
  line con 0
  
  line aux 0
  
  line vty 0 4
  
   password router
  
   login
  
  !
  
  end
  
   Router#
  
  
  
我来说两句(请遵守法律法规)
 网吧精品   网络布线   热门专题   推荐配置   网络安全   路由专题   网吧游戏更新   网吧QQ关   网吧注册表   网管初学   网吧优化   网吧无盘优化   网吧系统优化   迅闪2008   网吧三层更新   无盘服务器   MaxDos   Win2008   网吧虚拟磁盘   星际争霸II   锐起无盘   网维大师   网吧游戏菜单   网吧活动   迅闪2009   网吧母盘   万象   网吧真实生活   迅闪2010   信佑2010   Windows8   信佑   迅闪   易游   顺网无盘   连锁网吧   黑网吧   2011网吧新闻   网吧闲聊   网吧游戏   互联网类软件   增值联盟   网吧广告联盟   有道搜索联盟   淘123联盟   网吧广告   深度无盘   信佑无盘   网众无盘   MZD无盘   网吧软件故障解决   网吧硬件故障大全   海蜘蛛   ROS   磁盘缓存   网吧GHOST   快吧无盘   快吧教程   网吧防盗   2011网吧政策   绿色网吧   网吧禁烟   万象2004   雪花病毒   网吧电影   网吧达人   QQ网吧   SuperCache|SuperSpeed   CCDISK   网吧远程控制   2011网吧配置   万象密码   迅闪无盘   网吧系统下载   网吧管理系统   网吧键盘   网吧鼠标   win8,Windows 8教程,Windows 8下载   网吧最新新闻   网吧路由   锐起无盘补丁   WayOs   网吧显示器   液晶   万能包   网吧消防   显卡   SSD   网卡   网吧源码   主板   云海   I8无盘   网卡汇聚   网吧DDOS

更多专题

声明
本文来源地址:http://cisco.chinaitlab.com/List_137.html
声明:本站所发表的文章、评论及图片仅代表作者本人观点,与本站立场无关。若文章侵犯了您的相关权益,请及时与我们联系,我们会及时处理,感谢您对本站的支持!联系邮箱:support@txwb.com.
天下网吧·网吧天下
  • 本周热门
  • 本月热门
  • 阅读排行
网吧,网吧系统,网吧资讯,网吧软件,网吧技术,网吧无盘,网吧经营,网吧管理,网吧联盟。