华为三层交换机模拟互通(所有端口都是access端口)

华为三层交换机模拟互通(所有端口都是access端口)目的:两个三层交换机下挂不同的vlan进行互通,所有端口都是access端口

配置完成后10.86.3.50可以ping通所在设备的任意联网ip

LSW4配置:

<Huawei>display current-configuration 

#

sysname Huawei

#

vlan batch 2 to 4

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

drop-profile default

#

aaa

 authentication-scheme default

 authorization-scheme default

 accounting-scheme default

 domain default

 domain default_admin

 local-user admin password simple admin

 local-user admin service-type http

#

interface Vlanif1

#

interface Vlanif2

 ip address 10.86.3.1 255.255.255.0

#

interface Vlanif3

 ip address 10.86.4.1 255.255.255.0

#

interface Vlanif4

 ip address 10.86.5.1 255.255.255.0

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/2

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/3

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/4

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/5

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/6

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/7

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/8

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/9

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/10

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/11

 port link-type access

 port default vlan 3

#

interface GigabitEthernet0/0/12

 port link-type access

 port default vlan 3

#

interface GigabitEthernet0/0/13

 port link-type access

 port default vlan 3

#

interface GigabitEthernet0/0/14

 port link-type access

 port default vlan 3

#

interface GigabitEthernet0/0/15

 port link-type access

 port default vlan 3

#

interface GigabitEthernet0/0/16

#

interface GigabitEthernet0/0/17

#

interface GigabitEthernet0/0/18

#

interface GigabitEthernet0/0/19

#

interface GigabitEthernet0/0/20

#

interface GigabitEthernet0/0/21

#

interface GigabitEthernet0/0/22

#

interface GigabitEthernet0/0/23

 port link-type access

 port default vlan 4

#

interface GigabitEthernet0/0/24

 port link-type access

 port default vlan 4

#

interface NULL0

#

ip route-static 172.16.3.0 255.255.255.0 10.86.5.2

ip route-static 172.16.4.0 255.255.255.0 10.86.5.2

#

user-interface con 0

user-interface vty 0 4

#

port-group 1

#

port-group 2

 group-member GigabitEthernet0/0/1

 group-member GigabitEthernet0/0/2

 group-member GigabitEthernet0/0/3

 group-member GigabitEthernet0/0/4

 group-member GigabitEthernet0/0/5

 group-member GigabitEthernet0/0/6

 group-member GigabitEthernet0/0/7

 group-member GigabitEthernet0/0/8

 group-member GigabitEthernet0/0/9

 group-member GigabitEthernet0/0/10

#

port-group 3

 group-member GigabitEthernet0/0/11

 group-member GigabitEthernet0/0/12

 group-member GigabitEthernet0/0/13

 group-member GigabitEthernet0/0/14

 group-member GigabitEthernet0/0/15

#

port-group 4

 group-member GigabitEthernet0/0/23

 group-member GigabitEthernet0/0/24

#

return

<Huawei> 



LSW5配置:

<Huawei>display current-configuration 

#

sysname Huawei

#

vlan batch 2 to 4

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

drop-profile default

#

aaa

 authentication-scheme default

 authorization-scheme default

 accounting-scheme default

 domain default

 domain default_admin

 local-user admin password simple admin

 local-user admin service-type http

#

interface Vlanif1

#

interface Vlanif2

 ip address 172.16.3.1 255.255.255.0

#

interface Vlanif3

 ip address 172.16.4.1 255.255.255.0

#

interface Vlanif4

 ip address 10.86.5.2 255.255.255.0

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/2

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/3

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/4

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/5

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/6

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/7

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/8

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/9

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/10

 port link-type access

 port default vlan 2

#

interface GigabitEthernet0/0/11

 port link-type access

 port default vlan 3

#

interface GigabitEthernet0/0/12

 port link-type access

 port default vlan 3

#

interface GigabitEthernet0/0/13

 port link-type access

 port default vlan 3

#

interface GigabitEthernet0/0/14

 port link-type access

 port default vlan 3

#

interface GigabitEthernet0/0/15

 port link-type access

 port default vlan 3

#

interface GigabitEthernet0/0/16

#

interface GigabitEthernet0/0/17

#

interface GigabitEthernet0/0/18

#

interface GigabitEthernet0/0/19

#

interface GigabitEthernet0/0/20

#

interface GigabitEthernet0/0/21

#

interface GigabitEthernet0/0/22

#

interface GigabitEthernet0/0/23

 port link-type access

 port default vlan 4

#

interface GigabitEthernet0/0/24

 port link-type access

 port default vlan 4

#

interface NULL0

#

ip route-static 10.86.3.0 255.255.255.0 10.86.5.1

ip route-static 10.86.4.0 255.255.255.0 10.86.5.1

#

user-interface con 0

user-interface vty 0 4

#

port-group 2

 group-member GigabitEthernet0/0/1

 group-member GigabitEthernet0/0/2

 group-member GigabitEthernet0/0/3

 group-member GigabitEthernet0/0/4

 group-member GigabitEthernet0/0/5

 group-member GigabitEthernet0/0/6

 group-member GigabitEthernet0/0/7

 group-member GigabitEthernet0/0/8

 group-member GigabitEthernet0/0/9

 group-member GigabitEthernet0/0/10

#

port-group 3

 group-member GigabitEthernet0/0/11

 group-member GigabitEthernet0/0/12

 group-member GigabitEthernet0/0/13

 group-member GigabitEthernet0/0/14

 group-member GigabitEthernet0/0/15

#

port-group 4

 group-member GigabitEthernet0/0/23

 group-member GigabitEthernet0/0/24

#

return


本文出自 “tiaozhan1000” 博客,请务必保留此出处http://211399.blog.51cto.com/201399/1541639

华为三层交换机模拟互通(所有端口都是access端口),布布扣,bubuko.com

华为三层交换机模拟互通(所有端口都是access端口)

上一篇:通过案例学习调优之--Oracle ASH


下一篇:kubernetes API服务器的安全防护