雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1734|回复: 2

经典配置 Vlan篇

[复制链接]
发表于 2003-11-3 19:20:07 | 显示全部楼层 |阅读模式
<img border=0 src=http://www.networksky.com/images/2002.10.26.22.25.49.1 onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br><br>Catalyst 5000 参数<br><br>源码:<br>实验命令 <br>clear ip permit <br>clear ip route <br>clear vlan <br>clear vtp <br>debug ip packet <br>ping <br>set interface sc0 <br>set ip permit <br>set ip route <br>set vlan <br>set vtp <br>show cam <br>show config <br>show flash <br>show interface <br>show ip permit <br>show ip route <br>show log <br>show mac <br>show module <br>show port <br>show system <br>show users <br>show version <br>show vlan <br>show vtp <br>telnet<br><br>配置说明 <br>1.R1 <br>2.R2 <br>3.R3 <br>4.R4 <br>5.R5 <br>6.R6 <br>7.CAT5K<br>*********************<br>*      R1           * <br>*********************<br>Current configuration: <br>! <br>version 11.2 <br>no service password-encryption <br>! <br>hostname r1 <br>! <br>enable password cisco <br>! <br>! <br>! <br>interface Ethernet0 <br>   ip address 130.10.7.1 255.255.255.0 <br>   no ip directed-broadcast <br>   no ip mroute-cache <br>! <br>interface Serial0 <br>   ip address 130.10.1.1 255.255.255.0 <br>   encapsulation frame-relay <br>   ip ospf network point-to-multipoint <br>! <br>interface Serial1 <br>   ip address 130.10.4.1 255.255.255.0 <br>   clockrate 2000000 <br>! <br>interface BRI0 <br>   no ip address <br>   no ip directed-broadcast <br>   no ip mroute-cache <br>   shutdown <br>! <br>router ospf 10 <br>   redistribute connected subnets <br>   network 130.10.1.0 0.0.0.255 area 0 <br>   network 130.10.4.0 0.0.0.255 area 1 <br>   network 130.10.7.0 0.0.0.255 area 2 <br>! <br>no ip classless <br>! <br>! <br>line con 0 <br>line aux 0 <br>line vty 0 4 <br>password cisco <br>login <br>! <br>end<br>******************<br>*      R2        * <br>******************<br>Current configuration: <br>! <br>version 11.2 <br>no service password-encryption <br>no service udp-small-servers <br>no service tcp-small-servers <br>! <br>hostname R2 <br>! <br>enable password cisco <br>! <br>! <br>! <br>interface Serial0 <br>ip address 130.10.4.2 255.255.255.0 <br>no fair-queue <br>! <br>interface Serial1 <br>no ip address <br>shutdown <br>! <br>interface TokenRing0 <br>ip address 130.10.5.2 255.255.255.0 <br>ring-speed 16 <br>! <br>router ospf 20 <br>network 130.10.5.0 0.0.0.255 area 1 <br>network 130.10.4.0 0.0.0.255 area 1 <br>! <br>no ip classless <br>! <br>! <br>line con 0 <br>line aux 0 <br>line vty 0 4 <br>password cisco <br>login <br>! <br>end<br>******************<br>*      R3        *<br>****************** <br>Current configuration: <br>! <br>version 11.2 <br>no service password-encryption <br>no service udp-small-servers <br>no service tcp-small-servers <br>! <br>hostname R3 <br>! <br>enable password cisco <br>! <br>! <br>! <br>interface Serial0 <br>no ip address <br>shutdown <br>no fair-queue <br>! <br>interface Serial1 <br>no ip address <br>shutdown <br>! <br>interface TokenRing0 <br>ip address 130.10.5.3 255.255.255.0 <br>ring-speed 16 <br>! <br>interface TokenRing1 <br>ip address 130.10.6.3 255.255.255.0 <br>ring-speed 16 <br>! <br>router ospf 30 <br>redistribute connected subnets <br>network 130.10.5.0 0.0.0.255 area 1 <br>! <br>no ip classless <br>! <br>! <br>line con 0 <br>line aux 0 <br>line vty 0 4 <br>password cisco <br>login <br>! <br>end<br>*****************<br>*      R5       *<br>***************** <br>Current configuration: <br>! <br>version 11.2 <br>no service password-encryption <br>no service udp-small-servers <br>no service tcp-small-servers <br>! <br>hostname R5 <br>enable password cisco <br>! <br>! <br>! <br>interface Ethernet0 <br>ip address 130.10.3.5 255.255.255.0 <br>no ip directed-broadcast <br>no ip route-cache <br>no ip mroute-cache <br>no mop enabled <br>! <br>interface Serial0 <br>ip address 130.10.1.5 255.255.255.0 <br>encapsulation frame-relay <br>ip ospf network point-to-multipoint <br>frame-relay map ip 130.10.1.1 100 broadcast <br>frame-relay map ip 130.10.1.6 100 broadcast <br>! <br>interface Serial1 <br>no ip address <br>shutdown <br>! <br>router ospf 50 <br>redistribute connected subnets <br>network 130.10.1.0 0.0.0.255 area 0 <br>network 130.10.3.0 0.0.0.255 area 2 <br>! <br>no ip classless <br>! <br>! <br>line con 0 <br>line aux 0 <br>line vty 0 4 <br>password cisco <br>login <br>! <br>end<br>*****************<br>*     R6        *<br>***************** <br>Current configuration: <br>! <br>version 11.2 <br>no service password-encryption <br>! <br>hostname R6 <br>! <br>enable password cisco <br>! <br>! <br>! <br>interface Serial0 <br>ip address 130.10.1.6 255.255.255.0 <br>encapsulation frame-relay <br>ip ospf network point-to-multipoint <br>frame-relay map ip 130.10.1.1 110 broadcast <br>frame-relay map ip 130.10.1.5 110 broadcast <br>! <br>interface Serial1 <br>no ip address <br>no ip mroute-cache <br>shutdown <br>! <br>interface TokenRing0 <br>ip address 130.10.2.6 255.255.255.0 <br>ring-speed 16 <br>! <br>interface BRI0 <br>no ip address <br>shutdown <br>! <br>router ospf 60 <br>redistribute connected subnets <br>network 130.10.1.0 0.0.0.255 area 0 <br>! <br>no ip classless <br>! <br>! <br>line con 0 <br>line aux 0 <br>line vty 0 4 <br>password cisco <br>login <br>! <br>end<br>*****************<br>*    CAT5K      *<br>***************** <br>begin <br>set password $1$0o8Z$GDCVUXu2Kn3mgBDKwF00h1 <br>set enablepass $1$0o8Z$GDCVUXu2Kn3mgBDKwF00h1 <br>set prompt Cat5k&gt; <br>set length 24 default <br>set logout 20 <br>set banner motd ^C^C <br>! <br>#system <br>set system baud 9600 <br>set system modem disable <br>set system name <br>set system location <br>set system contact <br>! <br>#snmp <br>set snmp community read-only public <br>set snmp community read-write private <br>set snmp community read-write-all secret <br>set snmp rmon disable <br>set snmp trap disable module <br>set snmp trap disable chassis <br>set snmp trap disable bridge <br>set snmp trap disable repeater <br>set snmp trap disable vtp <br>set snmp trap disable auth <br>set snmp trap disable ippermit <br>set snmp trap disable vmps <br>set snmp trap disable entity <br>set snmp trap disable config <br>set snmp trap disable stpx <br>! <br>#ip <br>set interface sc0 2 130.10.7.100 255.255.255.0 130.10.7.255 <br>set interface sc0 up <br>set interface sl0 0.0.0.0 0.0.0.0 <br>set interface sl0 up <br>set arp agingtime 1200 <br>set ip redirect enable <br>set ip unreachable enable <br>set ip fragmentation enable <br>set ip route 0.0.0.0 130.10.7.1 1 <br>set ip alias default 0.0.0.0 <br>! <br>#Command alias <br>! <br>#vmps <br>set vmps server retry 3 <br>set vmps server reconfirminterval 60 <br>set vmps tftpserver 0.0.0.0 vmps-config-database.1 <br>set vmps state disable <br>! <br>#dns <br>set ip dns disable <br>! <br>#tacacs+ <br>set tacacs attempts 3 <br>set tacacs directedrequest disable <br>set tacacs timeout 5 <br>set authentication login tacacs disable <br>set authentication login local enable <br>set authentication enable tacacs disable <br>set authentication enable local enable <br>! <br>#bridge <br>set bridge ipx snaptoether 8023raw <br>set bridge ipx 8022toether 8023 <br>set bridge ipx 8023rawtofddi snap <br>! <br>#vtp <br>set vtp domain cisco <br>set vtp mode server <br>set vtp passwd cisco <br>set vtp v2 disable <br>set vtp pruning disable <br>set vtp pruneeligible 2-1000 <br>clear vtp pruneeligible 1001-1005 <br>set vlan 1 name default type ethernet mtu 1500 said 100001 state ctive <br>set vlan 2 name VLAN2 type ethernet mtu 1500 said 100002 state active <br>set vlan 3 name VLAN3 type ethernet mtu 1500 said 100003 state active <br>set vlan 1002 name fddi-default type fddi mtu 1500 said 101002 state active <br>set vlan 1004 name fddinet-default type fddinet mtu 1500 said 101004 state active <br>set vlan 1005 name trnet-default type trbrf mtu 1500 said 101005 tate active <br>set vlan 1003 name token-ring-default type trcrf mtu 1500 said 101003 state active <br>! <br>#spantree <br>#uplinkfast groups <br>set spantree uplinkfast disable <br>#backbonefast <br>set spantree backbonefast disable <br>#vlan 1 <br>set spantree enable 1 <br>set spantree fwddelay 15 1 <br>set spantree hello 2 1 <br>set spantree maxage 20 1 <br>set spantree priority 32768 1 <br>#vlan 2 <br>set spantree enable 2 <br>set spantree fwddelay 15 2 <br>set spantree hello 2 2 <br>set spantree maxage 20 2 <br>set spantree priority 32768 2 <br>#vlan 3 <br>set spantree enable 3 <br>set spantree fwddelay 15 3 <br>set spantree hello 2 3 <br>set spantree maxage 20 3 <br>set spantree priority 32768 3 <br>#vlan 1003 <br>set spantree enable 1003 <br>set spantree fwddelay 4 1003 <br>set spantree hello 2 1003 <br>set spantree maxage 10 1003 <br>set spantree priority 32768 1003 <br>set spantree portstate 1003 auto 0 <br>set spantree portcost 1003 62 <br>set spantree portpri 1003 4 <br>set spantree portfast 1003 disable <br>#vlan 1005 <br>set spantree disable 1005 <br>set spantree fwddelay 4 1005 <br>set spantree hello 2 1005 <br>set spantree maxage 10 1005 <br>set spantree priority 32768 1005 <br>set spantree multicast-address 1005 ieee <br>! <br>#cgmp <br>set cgmp disable <br>set cgmp leave disable <br>! <br>#syslog <br>set logging console enable <br>set logging server disable <br>set logging level cdp 2 default <br>set logging level mcast 2 default <br>set logging level disl 5 default <br>set logging level dvlan 2 default <br>set logging level earl 2 default <br>set logging level fddi 2 default <br>set logging level ip 2 default <br>set logging level pruning 2 default <br>set logging level snmp 2 default <br>set logging level spantree 2 default <br>set logging level sys 5 default <br>set logging level tac 2 default <br>set logging level tcp 2 default <br>set logging level telnet 2 default <br>set logging level tftp 2 default <br>set logging level vtp 2 default <br>set logging level vmps 2 default <br>set logging level kernel 2 default <br>set logging level filesys 2 default <br>set logging level drip 2 default <br>set logging level pagp 5 default <br>set logging level mgmt 5 default <br>set logging level mls 5 default <br>set logging level protfilt 2 default <br>! <br>#ntp <br>set ntp broadcastclient disable <br>set ntp broadcastdelay 3000 <br>set ntp client disable <br>clear timezone <br>set summertime disable <br>! <br>#permit list <br>set ip permit enable <br>set ip permit 130.10.1.6 255.255.255.255 <br>set ip permit 130.10.2.6 255.255.255.255 <br>! <br>#drip <br>set tokenring reduction enable <br><br>et tokenring distrib-crf disable <br>! <br>#igmp <br>set igmp disable <br>! <br>#module 1 : 2-port 100BaseTX Supervisor <br>set module name 1 <br>set vlan 1 1/1-2 <br>set port enable 1/1-2 <br>set port level 1/1-2 normal <br>set port duplex 1/1-2 half <br>set port trap 1/1-2 disable <br>set port name 1/1-2 <br>set port security 1/1-2 disable <br>set port membership 1/1-2 static <br>set cdp enable 1/1-2 <br>set cdp interval 1/1-2 60 <br>set trunk 1/1 on isl 1-1005 <br>set trunk 1/2 auto isl 1-1005 <br>set spantree portfast 1/1-2 disable <br>set spantree portcost 1/1-2 19 <br>set spantree portpri 1/1-2 32 <br>set spantree portvlanpri 1/1 0 <br>set spantree portvlanpri 1/2 0 <br>set spantree portvlancost 1/1 cost 18 <br>set spantree portvlancost 1/2 cost 18 <br>! <br>#module 2 : 12-port 10/100BaseTX Ethernet <br>set module name 2 <br>set module enable 2 <br>set vlan 1 2/1-4 <br>set vlan 2 2/5-8 <br>set vlan 3 2/9-12 <br>set port enable 2/1-12 <br>set port level 2/1-12 normal <br>set port speed 2/1-12 auto <br>set port trap 2/1-12 disable <br>set port name 2/1-12 <br>set port security 2/1-12 disable <br>set port broadcast 2/1-12 0 <br>set port membership 2/1-12 static <br>set cdp enable 2/1-12 <br>set cdp interval 2/1-12 60 <br>set trunk 2/1 auto isl 1-1005 <br>set trunk 2/2 auto isl 1-1005 <br>set trunk 2/3 auto isl 1-1005 <br>set trunk 2/4 auto isl 1-1005 <br>set trunk 2/5 auto isl 1-1005 <br>set trunk 2/6 auto isl 1-1005 <br>set trunk 2/7 auto isl 1-1005 <br>set trunk 2/8 auto isl 1-1005 <br>set trunk 2/9 auto isl 1-1005 <br>set trunk 2/10 auto isl 1-1005 <br>set trunk 2/11 auto isl 1-1005 <br>set trunk 2/12 auto isl 1-1005 <br>set spantree portfast 2/1-12 disable <br>set spantree portcost 2/1-12 100 <br>set spantree portpri 2/1-12 32 <br>set spantree portvlanpri 2/1 0 <br>set spantree portvlanpri 2/2 0 <br>set spantree portvlanpri 2/3 0 <br>set spantree portvlanpri 2/4 0 <br>set spantree portvlanpri 2/5 0 <br>set spantree portvlanpri 2/6 0 <br>set spantree portvlanpri 2/7 0 <br>set spantree portvlanpri 2/8 0 <br>set spantree portvlanpri 2/9 0 <br>set spantree portvlanpri 2/10 0 <br>set spantree portvlanpri 2/11 0 <br>set spantree portvlanpri 2/12 0 <br>set spantree portvlancost 2/1 cost 99 <br>set spantree portvlancost 2/2 cost 99 <br>set spantree portvlancost 2/3 cost 99 <br>set spantree portvlancost 2/4 cost 99 <br>set spantree portvlancost 2/5 cost 99 <br>set spantree portvlancost 2/6 cost 99 <br>set spantree portvlancost 2/7 cost 99 <br>set spantree portvlancost 2/8 cost 99 <br>set spantree portvlancost 2/9 cost 99 <br>set spantree portvlancost 2/10 cost 99 <br>set spantree portvlancost 2/11 cost 99 <br>set spantree portvlancost 2/12 cost 99 <br>! <br>#module 3 empty <br>! <br>#module 4 empty <br>! <br>#module 5 empty <br>! <br>#switch port analyzer <br>set span disable <br>! <br>#cam <br>set cam agingtime 1-3,1003,1005 300 <br>end<br><br><br>[此帖子已被 westwindy 在 2003-11-3 19:30:04 编辑过]
发表于 2003-11-3 22:34:23 | 显示全部楼层
嗯,连图一起贴上来了。<br>这倒是一个很完整的拓扑啊。今后给大家的实验考试就是要用全拓扑来考了。
发表于 2003-11-4 08:33:05 | 显示全部楼层
good
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-11-22 14:24 , Processed in 0.089177 second(s), 18 queries , Gzip On.

快速回复 返回顶部 返回列表