Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Dhcp Relay Ethernet Link aggregation

2025-02-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

SW2=

[sw2] dis cu

#

Sysname sw2

Vlan batch 10 20-add vlan

#

Interface Eth-Trunk1 link aggregation

Port link-type trunk sets the interface to trunk mode to allow vlan 10 20 to pass through

Port trunk allow-pass vlan 10 20

#

Interface Eth-Trunk2

Port link-type trunk

Port trunk allow-pass vlan 10 20

#

Interface Ethernet0/0/1

Port link-type access adds the interface to vlan 10 in access mode

Port default vlan 10

#

Interface Ethernet0/0/10

Eth-trunk 1 interface added to eth-trunk 1

#

Interface Ethernet0/0/11

Eth-trunk 1

#

Interface Ethernet0/0/12

Port link-type access adds the interface to vlan 20 in access mode

Port default vlan 20

#

Interface GigabitEthernet0/0/1

Eth-trunk 2 interface added to eth-trunk 2

#

Interface GigabitEthernet0/0/2

Eth-trunk 2

#

SW3=

Sysname Huawei

#

Vlan batch 10 20

#

#

Interface Eth-Trunk1 entry interface

Port link-type trunk sets the interface to trunk

Port trunk allow-pass vlan10 20 trunk allows access to vlan10 20

#

Interface Ethernet0/0/1

#

Interface Ethernet0/0/2

Port link-type access adds the interface to vlan 10 in access mode

Port default vlan 10

#

Interface Ethernet0/0/12

Eth-trunk 1

# add the interface to eth-trunk 1

Interface Ethernet0/0/13

Eth-trunk 1

#

SW1=

Sysname sw1

#

Vlan batch 10 20 30 100 add vlan

#

Cluster enable

Ntdp enable

Ndp enable

#

Drop illegal-mac alarm

#

Dhcp enable enables dhcp function

#

Diffserv domain default

#

Drop-profile default

#

Ip pool vlan20

Gateway-list 192.168.20.1

Network 192.168.20.0 mask 255.255.255.0 set up an address pool for vlan20

Dns-list 2.2.2.2

#

Interface Vlanif1

#

Interface Vlanif10

Ip address 192.168.10.1 255.255.255.0

Dhcp select interface sets dhcp to vlan10 based on port

Dhcp server dns-list 1.1.1.1

#

Interface Vlanif20

Ip address 192.168.20.1 255.255.255.0 set up a gateway for vlan20

Dhcp select global dhcp address Pool Select Global

#

Interface Vlanif30

Ip address 192.168.30.1 255.255.255.0 vlan30 setup Gateway

Dhcp select global

Dhcp select relay dhcp relay agent

Dhcp relay server-ip 23.0.0.3 points to the ip address of the agent

#

Interface Vlanif100

Ip address 11.0.0.1 255.255.255.0 vlan100 setup Gateway

#

Interface MEth0/0/1

#

Interface Eth-Trunk2 enters interface interface Eth-Trunk2 and sets it to trunk, allowing vlan 10 20 to pass through

Port link-type trunk

Port trunk allow-pass vlan 10 20

#

Interface Eth-Trunk3

Port link-type access enters interface interface Eth-Trunk3 and sets it to trunk, allowing vlan 100 to pass through

Port default vlan 100

#

Interface GigabitEthernet0/0/1

Eth-trunk 2 adds interfaces to eth-trunk 2

#

Interface GigabitEthernet0/0/2

Eth-trunk 2

#

Interface GigabitEthernet0/0/3

Port link-type access enters the interface and sets the interface to access port belonging to vlan30

Port default vlan 30

#

Interface GigabitEthernet0/0/4

Eth-trunk 3

# add interfaces to eth-trunk 23

Interface GigabitEthernet0/0/5

Eth-trunk 3

#

Rip 1 dynamic routing protocol

Undo summary turns off route summarization

Version 2 version 2

Network 192.168.10.0

Network 192.168.20.0 tell neighbors what they know about ip

Network 192.168.30.0

Network 11.0.0.0

AR1=

Interface Eth-Trunk3 enters Eth-Trunk3

Undo portswitch switches from two-tier mode to three-tier mode

Ip address 11.0.0.2 255.255.255.0 set ip for Eth-Trunk3

#

Interface GigabitEthernet0/0/0

Eth-trunk 3 adds interfaces to eth-trunk 3 (link aggregation)

#

Interface GigabitEthernet0/0/1

Eth-trunk 3

#

Interface GigabitEthernet0/0/2

Ip address 12.0.0.1 255.255.255.0 set ip

#

Interface NULL0

#

Rip 1

Undo summary

Version 2

Network 11.0.0.0

Network 12.0.0.0

AR2=

Interface Eth-Trunk4

Undo portswitch switches from two-tier mode to three-tier mode

Ip address 23.0.0.2 255.255.255.0 set ip

#

Interface GigabitEthernet0/0/0

Ip address 12.0.0.2 255.255.255.0 ip

#

Interface GigabitEthernet0/0/1

Eth-trunk 4 adds interfaces to eth-trunk 4 (link aggregation)

#

Interface GigabitEthernet0/0/2

Eth-trunk 4

#

Interface NULL0

#

Rip 1

Undo summary

Version 2

Network 23.0.0.0

Network 12.0.0.0

#

AR3=

#

Dhcp enable enables dhcp function

#

Undo dhcp server bootp

#

Ip pool vlan30

Gateway-list 192.168.30.1

Network 192.168.30.0 mask 255.255.255.0 set up the address pool

Dns-list 3.3.3.3 4.4.4.4

#

Interface Eth-Trunk4

Undo portswitch switches from two-tier mode to three-tier mode

Ip address 23.0.0.3 255.255.255.0

Dhcp select global global address pool for DHCP clients to use

#

Interface GigabitEthernet0/0/0

Eth-trunk 4 adds interfaces to eth-trunk 4 (link aggregation)

#

Interface GigabitEthernet0/0/1

#

Interface GigabitEthernet0/0/2

Eth-trunk 4 adds interfaces to eth-trunk 4 (link aggregation)

#

Interface NULL0

#

Rip 1

Undo summary

Version 2

Network 23.0.0.0

#

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report