单臂路由实验配置文件
2008-09-16 12:56
495 查看
sw1配置
enable
conf t
host sw1
line c 0
logg sy
end
vlan data
vlan 2
vlan 3
vlan 4
vlan 5
exit
conf t
int r f 0/2 - 10
sw ac v 2
no shut
exit
int r f 0/11 - 15
sw ac v 3
no shut
exit
int f0/0
switchport mode trunk
no shut
exit
int f0/1
switchport mode trunk
no shut
end
write
show run
show vlan-s
sw2配置
enable
conf t
host sw2
line c 0
logg sy
end
vlan data
vlan 2
vlan 3
vlan 4
vlan 5
exit
conf t
int r f 0/2 - 10
sw ac v 4
no shut
exit
int r f 0/11 - 15
sw ac v 5
no shut
exit
int f0/0
switchport mode trunk
no shut
exit
int f0/1
switchport mode trunk
no shut
end
write
show run
show vlan-s
sw3配置
enable
conf t
host sw3
line c 0
logg sy
end
vlan data
vlan 2
vlan 3
vlan 4
vlan 5
exit
conf t
int r f 0/1 - 10
sw ac v 3
no shut
exit
int r f 0/11 - 15
sw ac v 4
no shut
exit
int f0/0
no shut
switchport mode trunk
switchport trunk alll vlan add 3
switchport trun k all vlan add 4
end
write
show run
show vlan-s
r1配置
enable
conf t
host r1
no ip do lo
line c 0
logg sy
exit
int e0/0
no shut
exit
int e0/0.1
enc dot1q 2
ip add 192.168.0.1 255.255.255.0
no shut
exit
int e0/0.2
enc dot1q 3
ip add 192.168.1.1 255.255.255.0
no shut
exit
int e0/0.3
enc dot1q 4
ip add 192.168.2.1 255.255.255.0
no shut
exit
int e0/0.4
enc dot1q 5
ip add 192.168.3.1 255.255.255.0
no shut
end
write
show run
vpc配置
ip 192.168.0.2 192.168.0.1 24
2
ip 192.168.1.2 192.168.1.1 24
3
ip 192.168.2.2 192.168.2.1 24
4
ip 192.168.3.2 192.168.3.1 24
5
ip 192.168.1.3 192.168.1.1 24
6
ip 192.168.2.3 192.168.2.1 24
1
show
enable
conf t
host sw1
line c 0
logg sy
end
vlan data
vlan 2
vlan 3
vlan 4
vlan 5
exit
conf t
int r f 0/2 - 10
sw ac v 2
no shut
exit
int r f 0/11 - 15
sw ac v 3
no shut
exit
int f0/0
switchport mode trunk
no shut
exit
int f0/1
switchport mode trunk
no shut
end
write
show run
show vlan-s
sw2配置
enable
conf t
host sw2
line c 0
logg sy
end
vlan data
vlan 2
vlan 3
vlan 4
vlan 5
exit
conf t
int r f 0/2 - 10
sw ac v 4
no shut
exit
int r f 0/11 - 15
sw ac v 5
no shut
exit
int f0/0
switchport mode trunk
no shut
exit
int f0/1
switchport mode trunk
no shut
end
write
show run
show vlan-s
sw3配置
enable
conf t
host sw3
line c 0
logg sy
end
vlan data
vlan 2
vlan 3
vlan 4
vlan 5
exit
conf t
int r f 0/1 - 10
sw ac v 3
no shut
exit
int r f 0/11 - 15
sw ac v 4
no shut
exit
int f0/0
no shut
switchport mode trunk
switchport trunk alll vlan add 3
switchport trun k all vlan add 4
end
write
show run
show vlan-s
r1配置
enable
conf t
host r1
no ip do lo
line c 0
logg sy
exit
int e0/0
no shut
exit
int e0/0.1
enc dot1q 2
ip add 192.168.0.1 255.255.255.0
no shut
exit
int e0/0.2
enc dot1q 3
ip add 192.168.1.1 255.255.255.0
no shut
exit
int e0/0.3
enc dot1q 4
ip add 192.168.2.1 255.255.255.0
no shut
exit
int e0/0.4
enc dot1q 5
ip add 192.168.3.1 255.255.255.0
no shut
end
write
show run
vpc配置
ip 192.168.0.2 192.168.0.1 24
2
ip 192.168.1.2 192.168.1.1 24
3
ip 192.168.2.2 192.168.2.1 24
4
ip 192.168.3.2 192.168.3.1 24
5
ip 192.168.1.3 192.168.1.1 24
6
ip 192.168.2.3 192.168.2.1 24
1
show
相关文章推荐
- 78、VLAN间路由配置实验之单臂路由
- Cisco Packet Tracer 交换与路由实验配置文件下载
- 单臂路由、扩展ACL与NAT的网络地址转换的配置实验
- ccna-独臂路由VLAN配置实验
- 基础实验1(单臂路由及利用路由器开启DHCP自动分配IP地址)
- CCNA实验之------配置文件拷贝到TFTP服务器
- CCNP路由实验---10、OSPF非绝对末节区域的配置
- CCNA(新版)-ipv6默认路由、静态路由配置实验
- CCNA实验之--单臂路由
- CCNA实验解析——VLAN间的路由的配置
- 单臂路由的配置
- 实验2 静态路由,默认路由的简单配置
- server2008实验之二 安装配置文件服务器
- CCNP路由实验---4、配置EIGRP不等价均衡
- 【华为】华为模拟器实验单臂路由+动态地址池
- 实验6 配置文件系统安全性
- 实验-思科设备划VLAN做单臂路由
- 实验三 静态路由、默认路由配置
- 单臂路由,三层交换机路由配置,动态路由配置