H3C设备管理控制台(Telnet),交换机trunk端口配置

  • 万事开头难 It is the first step that costs. / The first step is the hardest.

  • 好的开始是成功的一半 A good beginning is half the battle.     

SecurtCRT的talent地址为2016-2027,横数,共十二台

在真机上清空配置:

>reset saved-configuration
>reboot

在用户界面选择保留原有配置(save),然后重启(reboot),重启后配置还在,在用户界面输入reset saved-configuration(清空已保存设备),再度重启,配置已经被删除完毕

在真机上做实验时注意交换机的端口默认是关闭的,需要进行开启(no shutdown),我做昨天的在模拟器上的trunk实验,今天在真机上做。

配置如下:

<sw01>
 version 7.1.070, Feature 1306L02
#
 sysname sw01
#
 irf mac-address persistent timer
 irf auto-update enable
 undo irf link-delay
 irf member 1 priority 1
#
 lldp global enable
#
 fan prefer-direction slot 1 port-to-power
 password-recovery enable
#
vlan 1
#
vlan 10
#
vlan 20
#
 stp global enable
#
interface NULL0
#              
interface Vlan-interface10
 ip address 10.1.1.254 255.255.255.0
#              
interface Vlan-interface20
 ip address 20.1.1.254 255.255.255.0
#              
interface GigabitEthernet1/0/1
 port link-mode bridge
 port access vlan 10
 shutdown      
#              
interface GigabitEthernet1/0/2
 port link-mode bridge
 port access vlan 20
 shutdown      
#              
interface GigabitEthernet1/0/3
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan 1 10 20
#      

扫描二维码关注公众号,回复: 10851741 查看本文章

<sw02>
#
 version 7.1.070, Feature 1306L02
#
 sysname sw02
#
 irf mac-address persistent timer
 irf auto-update enable
 undo irf link-delay
 irf member 1 priority 1
#
 lldp global enable
#
 fan prefer-direction slot 1 port-to-power
 password-recovery enable
#
vlan 1
#
vlan 10
#
vlan 20
#
 stp global enable
#
interface NULL0
#              
interface GigabitEthernet1/0/1
 port link-mode bridge
 port access vlan 10
#              
interface GigabitEthernet1/0/2
 port link-mode bridge
 port access vlan 20
#              
interface GigabitEthernet1/0/3
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan 1 10 20
#               

开启失败检查主机网卡是否启用。

注意:save current configuration?选择no,不保存原有配置

然后接口开不了是怎么回事?!!!

急死了!!!!!!!!!!!!!

折腾了半天,去看机器,发现线没有连,他奶奶的我真是个蠢货。

最后需要退出锐捷校园网客户端或者禁用相关网卡,否则无法ping同另一台的网关或者IP地址,而使用中的网卡是连接机柜(网络5),禁用后才可以ping通真机,以完成本实验。

https://download.csdn.net/my

 

发布了37 篇原创文章 · 获赞 29 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_41645678/article/details/103045420