SVI与单臂路由
拓扑图:
要求:
[if !supportLists]1、 [endif]总公司配置SVI接口的vlan间通信
[if !supportLists]2、 [endif]分公司配置单臂路由的vlan间通信
[if !supportLists]3、 [endif]通过静态路由,实习总公司、分公司网络互联;
[if !supportLists]4、 [endif]配置总公司、分公司的所有网络设备可以被SSH远程管理,用户名和密码都是admin
[if !supportLists]5、 [endif]总公司三层交换机的f0/2接口使用SVI接口方式配置IP地址,使的与R1可以通信
命令解答:
SW1三层交换机的配置:
en
conf t
h SW1
ip routing
int f0/1
sw tr en dot1q
sw mo tr
vlan 10
vlan 20
vlan 99
int f0/2
sw mo ac
sw ac vlan 99
int vlan 10
ip add 172.16.10.254 255.255.255.0
int vlan 20
ip add 172.16.20.254 255.255.255.0
int vlan 99
ip add 10.1.1.1 255.255.255.252
int vlan 1
ip add 172.16.1.254 255.255.255.0
no shut
vtp domain low
vtp password 1225
S1交换机的配置:
en
conf t
h S1
int f0/3
sw mo tr
vtp pass 1225
vtp mode client
int f0/1
sw mo ac
sw ac vlan 10
int f0/2
sw mo ac
sw ac vlan 20
R1路由器的配置:
en
conf t
h R1
int f0/0
ip add 10.1.1.2 255.255.255.252
no shut
int f0/1
ip add 192.168.1.254 255.255.255.0
no shut
int f0/1.10
en dot1q 10
ip add 192.168.10.254 255.255.255.0
int f0/1.20
en dot1q 20
ip add 192.168.20.254 255.255.255.0
ip route 172.16.0.0 255.255.0.0 f0/0
S2交换机的配置:
en
conf t
h S2
int f0/4
sw mo tr
vlan 10
vlan 20
int f0/1
sw mo ac
sw ac vlan 1
int f0/2
sw mo ac
sw ac vlan 10
int f0/3
sw mo ac
sw ac vlan 20
要求4、
三层交换机SW1的配置:
enable password 123
username admin password admin
ip domain-name low.com
crypto key generate rsa
line vty 0 4
login local
transport input ssh
transport output ssh
二层交换机S1的配置:
int vlan 1
ip add 172.16.1.10 255.255.255.0
no shut
ip default-gateway 172.16.1.254
enable password 123
username admin password admin
ip domain-name low.com
crypto key generate rsa
line vty 0 4
login local
transport input ssh
transport output ssh
二层交换机S2的配置:
int vlan 1
ip add 192.168.1.10 255.255.255.0
no shut
ip default-gateway 192.168.1.254
enable password 123
username admin password admin
ip domain-name low.com
crypto key generate rsa
line vty 0 4
login local
transport input ssh
transport output ssh
路由器R1的配置:
enable password 123
username admin password admin
ip domain-name low.com
crypto key generate rsa
line vty 0 4
login local
transport input ssh
transport output ssh