华为交换机配置的问题

一:
#
interface Vlanif11
ip address 192.168.11.2 255.255.255.0
#
二:
interface Ethernet0/0/48
port default vlan 11
bpdu enable
ntdp enable
ndp enable
#
三:
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 1 to 4094
bpdu enable
ntdp enable
ndp enable
#
四:
ip route-static 0.0.0.0 0.0.0.0 192.168.11.1
#
五:
#
user-interface con 0
set authentication password simple huawei
user-interface vty 0 4
user privilege level 3
set authentication password simple huawei
#

以上五段是什么意思???说详细些,能逐句翻译一下更好,满意的话追加50分!!!!

#
interface Vlanif11 进入vlan11的三层接口
ip address 192.168.11.2 255.255.255.0
设置ip地址。
#
二:
interface Ethernet0/0/48 百兆电口48
port default vlan 11 属于vlan11
bpdu enable 一些二次协议的开启,华为默认带有。
ntdp enable
ndp enable
#
三:
interface GigabitEthernet0/0/4 进入千兆端口4
port link-type trunk 设置类型为trunk(连接交换机的端口,能够传输vlan tag标签)
port trunk allow-pass vlan 1 to 4094
允许此端口转发1到4096的vlan tag 数据
bpdu enable
ntdp enable
ndp enable
#
四:
ip route-static 0.0.0.0 0.0.0.0 192.168.11.1
设置默认路由,所有数据发送到192.168.11.1
可以这样理解,上边设置的ip地址是这个交换机的管理ip地址,此路由为此交换机的网关。全网也跨网段访问此交换机。
#
五:
#
user-interface con 0 设置con控制口密码
set authentication password simple huawei 设置验证密码为明文huawei
user-interface vty 0 4 远程登录用户0-4(也就是同时在线为5)
user privilege level 3 用户级别为3(系统-最高)
set authentication password simple huawei 同上
#
温馨提示:内容为网友见解,仅供参考
第1个回答  2021-03-12

网络工程师教你批量配置华为交换机,再也不用一条条指令敲配置了

相似回答