人的一生,有许多事情,是需要放在心里慢慢回味的,过去的就莫要追悔,一切向前看吧 任何打击都不足以成为你堕落的借口,即使你改变不了这个世界,你却依然可以改变自己,选择条正确的路永远走下去。
返回顶部

telnet设置和相同vlan间路由

一、telent配置

 

 

启动设备

 

交换机SW4设置

<Huawei>Undo terminal monitor       关闭弹窗

<Huawei>System-view                进入系统试图

[Huawei]User-interface console 0         

[Huawei-ui-console0]Idle-timeout 0 0    永不超时

[Huawei-ui-console0]Sysname SW4      更改名称

[SW4]Interface vlanif 1                 进入vlanif1接口

[SW4-Vlanif1]Ip add 192.168.1.1 24        设置IP

[SW4-Vlanif1]User-interface vty 0 4         开放5个端口

[SW4-ui-vty0-4]Authentication-mode password   认证模式密码

[SW4-ui-vty0-4]Set authentication password simple huawei    认证模式密码明文huawei

[SW4-ui-vty0-4]User privilege level 3                     用户权限等级3

[SW4-ui-vty0-4]quit                                  退出

交换机SW5设置

<Huawei>Undo terminal monitor  

<Huawei>System-view

[Huawei]User-interface console 0

[Huawei-ui-console0]Idle-timeout 0 0

[Huawei-ui-console0]Sysname SW5

[SW5]Interface vlanif 1

[SW5-Vlanif1]Ip add 192.168.1.2 24

[SW5-Vlanif1]User-interface vty 0 4

[SW5-ui-vty0-4]Authentication-mode password

[SW5-ui-vty0-4]Set authentication password simple huawei

[SW5-ui-vty0-4]User privilege level 3

[SW5-ui-vty0-4]quit

 

二、vlantrunk(相同vlan间路由)

 

启动设备,设置PCIP地址与子网掩码(同网段)

1、设置SW15参数

<Huawei>Undo terminal monitor     关闭弹窗

<Huawei>System-view              进入系统试图

[Huawei]User-interface console 0

[Huawei-ui-console0]Idle-timeout 0 0        永不超时

[Huawei-ui-console0]Sysname SW15         更改名称

[SW15]Vlan batch  2  3                   设置vlan 2 3

[SW15]Int e0/0/1                          进入e0/0/1接口

[SW15-Ethernet0/0/1]Port link-type access    接口类型access

[SW15-Ethernet0/0/1]Port default vlan 2      设置成vlan2

[SW15-Ethernet0/0/1]Int e0/0/2             进入e0/0/2接口

[SW15-Ethernet0/0/2]Port link-type access      接口类型access

[SW15-Ethernet0/0/2]Port default vlan 3        设置成vlan2

[SW15-Ethernet0/0/2]Int g0/0/1                 进入g0/0/1接口

[SW15-GigabitEthernet0/0/1]Port link-type trunk   接口类型trunk

[SW15-GigabitEthernet0/0/1]Port trunk allow-pass vlan 2 3   允许vlan2 3 通过

[SW15-GigabitEthernet0/0/1]Quit                        退出

2、设置SW16参数

<Huawei>Undo terminal monitor  

<Huawei>System-view

[Huawei]User-interface console 0

[Huawei-ui-console0]Idle-timeout 0 0

[Huawei-ui-console0]Sysname SW16

[SW16]Vlan batch  2  3

[SW16]Int e0/0/1

[SW16-Ethernet0/0/1]Port link-type access

[SW16-Ethernet0/0/1]Port default vlan 2

[SW16-Ethernet0/0/1]Int e0/0/2

[SW16-Ethernet0/0/2]Port link-type access

[SW16-Ethernet0/0/2]Port default vlan 3

[SW16-Ethernet0/0/2]Int g0/0/1

[SW16-GigabitEthernet0/0/1]Port link-type trunk

[SW16-GigabitEthernet0/0/1]Port trunk allow-pass vlan 2 3

[SW16-GigabitEthernet0/0/1]Quit

3、用PC去互相PING其他PC的IP,相同VLAN之间通信。

posted @ 2020-07-19 20:46  yy1299050947  阅读(321)  评论(0编辑  收藏  举报