逸佳君:CCNA之SVI与单臂路由

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

simayijia

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值