网络官网地址
网络配置生成工具
终端-接入-汇聚-核心-防火墙-互联网路由器

一 开局配置


华为设备配置命令
system-view
sysname SW-JR-Switch
vlan 10
vlan 20
vlan 30
vlan 40
quit
interface Vlan-interface 40
ip address 192.168.40.1 255.255.255.0
quit
ip route-static 192.168.40.254 0.0.0.0 0.0.0.0
interface GigabitEthernet 1/0/1
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/2
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/3
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/4
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/5
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/6
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/7
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/8
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/9
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/10
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/11
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/12
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/13
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/14
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/15
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/16
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/17
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/18
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/19
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/20
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/21
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/22
port link-type access
port access vlan 10
quit
interface TenGigabitEthernet 2/0/23
port link-type trunk
port trunk permit vlan 10 20 30 40
quit
lldp global enable
public-key local create rsa
public-key local create dsa
ssh server enable
#
user-interface vty 0 4
authentication-mode scheme
protocol inbound ssh
quit
#
local-user admin class manage
password simple Admin@12345
service-type ssh
authorization-attribute user-role network-admin
quit
return
save
y
y
华三配置命令

system-view
sysname SW01
vlan 10
vlan 20
quit
interface Vlan-interface 10
ip address 192.168.1.1 255.255.255.0
quit
ip route-static 0.0.0.0 0.0.0.0 192.168.1.254
interface GigabitEthernet 0/0/1
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/2
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/3
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/4
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/5
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/6
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/7
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/8
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/9
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/10
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/11
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/12
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/13
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/14
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/15
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/16
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/17
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/18
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/19
port link-type access
port access vlan 10
quit
interface GigabitEthernet 0/0/20
port link-type access
port access vlan 10
quit
interface TenGigabitEthernet 0/0/21
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/22
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/23
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/24
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/25
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/26
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/27
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/28
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/29
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/30
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/31
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/32
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/33
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/34
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/35
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/36
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/37
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/38
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/39
port link-type trunk
port trunk permit vlan 10 20
quit
interface TenGigabitEthernet 0/0/40
port link-type trunk
port trunk permit vlan 10 20
quit
lldp global enable
dhcp enable
public-key local create rsa
public-key local create dsa
ssh server enable
#
user-interface vty 0 4
authentication-mode scheme
protocol inbound ssh
quit
#
local-user admin class manage
password simple Admin@1234
service-type ssh
authorization-attribute user-role network-admin
quit
return
save
y
y
锐捷配置命令

enable
configure terminal
hostname SW01
vlan batch 10 20
interface vlan 10
ip address 192.168.1.1 255.255.255.0
quit
ip route 0.0.0.0 0.0.0.0 192.168.1.254
interface GigabitEthernet 0/0/1
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/2
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/3
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/4
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/5
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/6
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/7
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/8
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/9
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/10
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/11
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/12
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/13
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/14
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/15
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/16
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/17
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/18
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/19
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/20
switchport mode access
switchport access vlan 10
quit
interface TenGigabitEthernet 0/0/21
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/22
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/23
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/24
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/25
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/26
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/27
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/28
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/29
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/30
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/31
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/32
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/33
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/34
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/35
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/36
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/37
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/38
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/39
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/40
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
lldp run
dhcp enable
enable password Admin@1234
enable service ssh-server
crypto key generate dsa
y
ip ssh version 2
username admin privilege 15 password Admin@1234
username admin password Admin@1234
line vty 0 4
login login local
transport input ssh
exit
end
write
思科配置命令

enable
configure terminal
hostname SW01
vlan batch 10 20
interface vlan 10
ip address 192.168.1.1 255.255.255.0
quit
ip route-static 0.0.0.0 0.0.0.0 192.168.1.254
interface GigabitEthernet 0/0/1
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/2
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/3
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/4
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/5
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/6
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/7
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/8
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/9
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/10
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/11
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/12
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/13
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/14
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/15
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/16
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/17
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/18
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/19
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/20
switchport mode access
switchport access vlan 10
quit
interface TenGigabitEthernet 0/0/21
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/22
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/23
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/24
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/25
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/26
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/27
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/28
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/29
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/30
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/31
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/32
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/33
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/34
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/35
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/36
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/37
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/38
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/39
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface TenGigabitEthernet 0/0/40
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
lldp run
dhcp enable
crypto key generate rsa
2048
ip ssh version 2
username admin privilege 15 password Admin@1234
line vty 0 4
login local
transport input ssh
exit
中兴配置命令

enable
configure terminal
hostname SW01
vlan list 10 20
interface vlan 10
ip address 192.168.1.1 255.255.255.0
quit
ip route 0.0.0.0 0.0.0.0 192.168.1.254
interface GigabitEthernet 0/0/1
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/2
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/3
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/4
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/5
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/6
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/7
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/8
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/9
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/10
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/11
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/12
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/13
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/14
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/15
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/16
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/17
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/18
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/19
switchport mode access
switchport access vlan 10
quit
interface GigabitEthernet 0/0/20
switchport mode access
switchport access vlan 10
quit
interface xgei- 0/0/21
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/22
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/23
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/24
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/25
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/26
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/27
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/28
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/29
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/30
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/31
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/32
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/33
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/34
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/35
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/36
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/37
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/38
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/39
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/40
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/21
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/22
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/23
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/24
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/25
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/26
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/27
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/28
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/29
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/30
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/31
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/32
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/33
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/34
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/35
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/36
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/37
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/38
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/39
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
interface xgei- 0/0/40
switchport mode trunk
switchport trunk allowed vlan 10 20
quit
lldp enable
dhcp
enable
ssh server enable
ssh server version 2
ssh server authentication mode local
username admin password Admin@1234 privilege 15
multi-user configure
二 DHCP配置
华为配置命令

system-view
dhcp enable
vlan batch 10 20
interface vlan 10
ip address 192.168.10.1 255.255.255.0
dhcp select global
quit
ip pool vlan10
network 192.168.10.0 mask 255.255.255.0
dns-list 114.114.114.114 8.8.8.8
gateway-list 192.168.10.254
excluded-ip-address 192.168.10.1 192.168.10.10
quit
return
save
y
华三配置命令

system-view
dhcp enable
vlan 10
vlan 20
quit
interface vlan 10
ip address 192.168.10.1 255.255.255.0
dhcp select server
quit
dhcp server ip-pool vlan10
network 192.168.10.0 mask 255.255.255.0
dns-list 114.114.114.114 8.8.8.8
gateway-list 192.168.10.254
quit
dhcp server forbidden-ip 192.168.10.1 192.168.10.10
return
save
y
y
锐捷配置命令
以下是将您提供的Cisco风格的配置脚本转换为锐捷(Ruijie)交换机的配置脚本:
```shell
<Ruijie> system-view
[Ruijie] vlan batch 10 20
[Ruijie] interface Vlanif 10
[Ruijie] ip address 192.168.10.1 24
[Ruijie] quit
[Ruijie] dhcp enable
[Ruijie] ip pool vlan10
[Ruijie] network 192.168.10.0 mask 255.255.255.0
[Ruijie] dns-list 114.114.114.114 8.8.8.8
[Ruijie] gateway-list 192.168.10.254
[Ruijie] excluded-ip-section 192.168.10.1 192.168.10.10
[Ruijie] quit
[Ruijie] save
```
请注意以下几点:
1. 在锐捷交换机中,进入系统视图的命令是 `system-view`。
2. 锐捷交换机中批量创建VLAN的命令是 `vlan batch`。
3. 锐捷交换机中接口视图的命名是 `Vlanif` 而不是 `interface vlan`。
4. 锐捷交换机中设置IP地址的命令是 `ip address`,子网掩码使用 `/24` 表示 `255.255.255.0`。
5. 锐捷交换机中启用DHCP服务的命令是 `dhcp enable`。
6. 锐捷交换机中创建DHCP地址池的命令是 `ip pool`。
7. 锐捷交换机中设置DNS服务器的命令是 `dns-list`。
8. 锐捷交换机中设置默认网关的命令是 `gateway-list`。
9. 锐捷交换机中排除特定IP地址的命令是 `excluded-ip-section`。
10. 锐捷交换机中保存配置的命令是 `save`。
请根据您的实际设备型号和软件版本进行相应的调整,因为不同型号和版本的锐捷交换机可能在命令上有所差异。
思科配置命令

configure terminal
vlan batch 10 20
interface vlan 10
ip address 192.168.10.1 255.255.255.0
exit
service dhcp
ip dhcp pool vlan10
network 192.168.10.0 mask 255.255.255.0
dns-server 114.114.114.114 8.8.8.8
default-router 192.168.10.254
ip dhcp excluded-address 192.168.10.1 192.168.10.10
exit
end
write memory
y
中兴配置命令
<ZTE> system-view
[ZTE] vlan batch 10 20
[ZTE] interface Vlanif 10
[ZTE] ip address 192.168.10.1 24
[ZTE] quit
[ZTE] dhcp enable
[ZTE] ip pool vlan10
[ZTE] network 192.168.10.0 mask 255.255.255.0
[ZTE] dns-list 114.114.114.114 8.8.8.8
[ZTE] gateway-list 192.168.10.254
[ZTE] excluded-ip-section 192.168.10.1 192.168.10.10
[ZTE] quit
[ZTE] save
请注意以下几点:
在中兴交换机中,进入系统视图的命令是 system-view。
批量创建VLAN的命令是 vlan batch。
接口视图的命名是 Vlanif 而不是 interface vlan。
设置IP地址的命令是 ip address,子网掩码使用 /24 表示 255.255.255.0。
启用DHCP服务的命令是 dhcp enable。
创建DHCP地址池的命令是 ip pool。
设置DNS服务器的命令是 dns-list。
设置默认网关的命令是 gateway-list。
排除特定IP地址的命令是 excluded-ip-section。
保存配置的命令是 save。
三 端口聚合
华为配置命令

华三配置命令
锐捷配置命令
锐捷配置命令:
shell
<Ruijie> system-view
[Ruijie] vlan 10 20
[Ruijie] interface AggregatePort 1
[Ruijie] link-aggregation mode dynamic
[Ruijie] quit
[Ruijie] interface GigabitEthernet0/0/47
[Ruijie] port link-aggregation group 1
[Ruijie] quit
[Ruijie] interface GigabitEthernet0/0/48
[Ruijie] port link-aggregation group 1
[Ruijie] quit
[Ruijie] interface AggregatePort 1
[Ruijie] port link-type trunk
[Ruijie] port trunk permit vlan 10 20
[Ruijie] quit
[Ruijie] save
思科配置命令
shell
Switch> enable
Switch# configure terminal
Switch(config)# vlan 10,20
Switch(config)# interface Port-channel 1
Switch(config-if)# link-aggregation mode dynamic
Switch(config-if)# no shutdown
Switch(config-if)# exit
Switch(config)# interface FastEthernet0/0/47
Switch(config-if)# switchport mode trunk
Switch(config-if)# channel-group 1 mode on
Switch(config-if)# exit
Switch(config)# interface FastEthernet0/0/48
Switch(config-if)# switchport mode trunk
Switch(config-if)# channel-group 1 mode on
Switch(config-if)# exit
Switch(config)# interface Port-channel 1
Switch(config-if)# switchport trunk allowed vlan 10,20
Switch(config-if)# exit
Switch(config)# end
Switch# write memory
中兴配置命令
shell
<ZTE> system-view
[ZTE] vlan 10 20
[ZTE] interface AggregatePort 1
[ZTE] link-aggregation mode dynamic
[ZTE] quit
[ZTE] interface GigabitEthernet0/0/47
[ZTE] port link-aggregation group 1
[ZTE] quit
[ZTE] interface GigabitEthernet0/0/48
[ZTE] port link-aggregation group 1
[ZTE] quit
[ZTE] interface AggregatePort 1
[ZTE] port link-type trunk
[ZTE] port trunk permit vlan 10 20
[ZTE] quit
[ZTE] save