经典配置 Vlan篇
源码: 实验命令 clear ip permit clear ip route clear vlan clear vtp debug ip packet ping set interface sc0 set ip permit set ip route set vlan set vtp show cam show config show flash show interface show ip permit show ip route show log show mac show module show port show system show users show version show vlan show vtp telnet 配置说明 1.R1 2.R2 3.R3 4.R4 5.R5 6.R6 7.CAT5K R1 Current configuration: !interface Ethernet0 ip address 130.10.7.1 255.255.255.0 no ip directed-broadcast no ip mroute-cache !interface Serial0 ip address 130.10.1.1 255.255.255.0 encapsulation frame-relay ip ospf network point-to-multipoint !interface Serial1 ip address 130.10.4.1 255.255.255.0 clockrate 2000000 !interface BRI0 no ip address no ip directed-broadcast no ip mroute-cache shutdown !router ospf 10 redistribute connected subnets network 130.10.1.0 0.0.0.255 area 0 network 130.10.4.0 0.0.0.255 area 1 network 130.10.7.0 0.0.0.255 area 2 !interface Serial0 ip address 130.10.4.2 255.255.255.0 no fair-queue !interface TokenRing0 ip address 130.10.5.2 255.255.255.0 ring-speed 16 !router ospf 20 network 130.10.5.0 0.0.0.255 area 1 network 130.10.4.0 0.0.0.255 area 1 !interface TokenRing1 ip address 130.10.6.3 255.255.255.0 ring-speed 16 !router ospf 30 redistribute connected subnets network 130.10.5.0 0.0.0.255 area 1 !line con 0 line aux 0 line vty 0 4 password cisco login !version 11.2 no service password-encryption no service udp-small-servers no service tcp-small-servers !interface Ethernet0 ip address 130.10.3.5 255.255.255.0 no ip directed-broadcast no ip route-cache no ip mroute-cache no mop enabled !interface Serial0 ip address 130.10.1.5 255.255.255.0 encapsulation frame-relay ip ospf network point-to-multipoint frame-relay map ip 130.10.1.1 100 broadcast frame-relay map ip 130.10.1.6 100 broadcast !router ospf 50 redistribute connected subnets network 130.10.1.0 0.0.0.255 area 0 network 130.10.3.0 0.0.0.255 area 2 !