华为交换机dhcp全局模式和接口模式的配置

dhcp-config.png

<Huawei>
<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname SW1
[SW1]
[SW1]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]
[SW1]interface vlanif 10
[SW1-Vlanif10]ip address 192.168.10.254 24
[SW1-Vlanif10]quit
[SW1]
[SW1]interface vlanif 20
[SW1-Vlanif20]ip address 192.168.20.254 24
[SW1-Vlanif20]quit
[SW1]
[SW1]interface G0/0/1
[SW1-GigabitEthernet0/0/1]port link-type access
[SW1-GigabitEthernet0/0/1]port default vlan 10
[SW1-GigabitEthernet0/0/1]quit
[SW1]
[SW1]interface G0/0/2
[SW1-GigabitEthernet0/0/2]port link-type access
[SW1-GigabitEthernet0/0/2]port default vlan 20
[SW1-GigabitEthernet0/0/2]quit
[SW1]
[SW1]
[SW1]# dhcp 
[SW1]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[SW1]interface vlanif 10
[SW1-Vlanif10]dhcp select interface 
[SW1-Vlanif10]dhcp server dns-list 1.1.1.1
[SW1-Vlanif10]dhcp server excluded 192.168.10.200 192.168.10.253
[SW1-Vlanif10]dhcp server lease day 8
[SW1-Vlanif10]quit
[SW1]
[SW1]# dhcp 
[SW1]interface vlanif 20
[SW1-Vlanif20]dhcp select global
[SW1-Vlanif20]ip pool 20
Info:It's successful to create an IP address pool.
[SW1-ip-pool-20]network 192.168.20.0 mask 24
[SW1-ip-pool-20]gateway-list 192.168.20.254
[SW1-ip-pool-20]dns-list 1.1.1.1
[SW1-ip-pool-20]excluded 192.168.10.100 192.168.10.254
Error:The IP address is not in the pool.
[SW1-ip-pool-20]lease day 8
[SW1-ip-pool-20]quit

链路聚合(Eth-Trunk), 通过将多条以太网物理链路捆绑在一起,形成一条逻辑链路。有三大优势可以 增加带宽提升系统可靠性(即使部分链路出现故障,流量可以切换到其他链路上),负载均摊

重要知识点 多条物理链路聚合后

  1. 总带宽等于原来的多条物理链路带宽总和。
  2. 多条物理链路互相备份,当某条链路出现故障后,流量可以切换到其他链路上。
  3. 流量可以负载均摊。

LACP(Link Aggregation Control Protocol) 链路聚合模式可以

华为交换机配置telnet 登录的脚本


system-view
vlan 5
management-vlan
quit
interface vlanif 5
ip address 10.10.10.1 24
quit

interface g0/0/1
port link-type trunk
port trunk allow-pass vlan 5
quit

telnet server enable


user-interface vty 0 4
protocol inbound telnet
authentication-mode aaa
idle-timeout 15
quit

aaa
local-user admin1 password cipher 123
local-user admin1 privilege level 3
local-user admin1 service-type telnet 

acess 口不能加入管理vlan

[Huawei-GigabitEthernet0/0/2]port default vlan 5
Error: The VLAN is already a management-VLAN.
[Huawei-GigabitEthernet0/0/2]dis    
[Huawei-GigabitEthernet0/0/2]display this    
[Huawei-GigabitEthernet0/0/2]display this 
#
interface GigabitEthernet0/0/2
 port link-type access
#
return
[Huawei-GigabitEthernet0/0/2]

华为交换机查看telnet 是否开启

display telnet server status
Info: The Telnet server has been enabled.
[Huawei]display telnet server status
 TELNET IPv4 server                       :Enable
 TELNET IPv6 server                       :Enable
 TELNET server port                       :23

开启telnet

telnet server enable

关闭telnet

undo telnet server enable

修改telnet 端口

telnet server port ?
  INTEGER<23,1025-55535>  Set the port number, the default value is 23