双系统怎么切换 - 双系统怎么切换 华为

  • 双系统怎么切换 - 双系统怎么切换 华为已关闭评论
  • 230 次浏览
  • A+
所属分类:随笔创作

日常维护工作中因为组网需求的不同,想要实现二层接口切换三层接口或者反着来,下面分享个知识点。

直接上演示命令

进入接口模式system-viewEntersystemview,returnuserviewwithCtrl+Z.查看接口是否处于三层接口状态:Switch Port, PVID :[Huawei]disinterfaceGigabitEthernet0/0/24GigabitEthernet0/0/24 current state :DOWNLine protocol current state :DOWNDescription:SwitchPort,PVID :1,TPID :8100(Hex),TheMaximumFrameLengthis9216IPSendingFramesFormatisPKTFMT_ETHNT_2,Hardwareaddressis4c1f-cc8b-27b0Last physical up time :-Last physical down time :2023-01-1017:35:52UTC-08:00Current system time:2023-01-1017:52:26-08:00Hardwareaddressis4c1f-cc8b-27b0Last300secondsinputrate0bytes/sec,0packets/secLast300secondsoutputrate0bytes/sec,0packets/secInput:0bytes,0packetsOutput:0bytes,0packetsInput:Unicast:0packets,Multicast:0packetsBroadcast:0packetsOutput:Unicast:0packets,Multicast:0packetsBroadcast:0packetsInput bandwidth utilization :0%Output bandwidth utilization :0%进入接口[Huawei]interfaceGigabitEthernet0/0/24查看接口当前状态[Huawei-GigabitEthernet0/0/24]disthisinterfaceGigabitEthernet0/0/24return切换接口工作模式至三层[Huawei-GigabitEthernet0/0/24]undoportswitch[Huawei-GigabitEthernet0/0/24]disthisinterfaceGigabitEthernet0/0/24undoportswitchreturn再次查看接口 工作模式:Route Port,The Maximum Frame Length is 9216[Huawei]disinterfaceGigabitEthernet0/0/24GigabitEthernet0/0/24 current state :DOWNLine protocol current state :DOWNDescription:RoutePort,TheMaximumFrameLengthis9216Internet protocol processing :disabledIPSendingFramesFormatisPKTFMT_ETHNT_2,Hardwareaddressis4c1f-cc8b-98ffLast physical up time :-Last physical down time :2023-01-1017:35:52UTC-08:00Current system time:2023-01-1017:56:58-08:00Hardwareaddressis4c1f-cc8b-98ffLast300secondsinputrate0bytes/sec,0packets/secLast300secondsoutputrate0bytes/sec,0packets/secInput:0bytes,0packetsOutput:0bytes,0packetsInput:Unicast:0packets,Multicast:0packetsBroadcast:0packetsOutput:Unicast:0packets,Multicast:0packetsBroadcast:0packetsInput bandwidth utilization :0%Output bandwidth utilization :0%[Huawei]

小建议

建议先将成员接口加入Eth-Trunk后,再配置Eth-Trunk子接口。

演示命令interfaceEth-Trunk5descriptionto三层演示undoportswitchipaddress192.168.2.25255.255.255.252modelacpinterface10GE1/1/0/21description******shutdowneth-trunk5undoshutdowninterface10GE2/1/0/22description******shutdowneth-trunk5undoshutdown对接**系统静态路由iproute-static192.168.0.024Eth-Trunk5192.168.2.26

辛酸史分享

在这里分享一下个人学习网络设备过程中的一点辛酸史,因工作调整原因(基于作者这个城市,这个工作环境中个人水平还算可以的情况下)接手了一套烂到屎(没人愿意接手)的系统,其中包括大量服务器和网络设备(交换机、防火墙);在维护工作中顺着业务及网络设备上面的配置、策略,慢慢去梳理整个系统的拓扑、去学习相关网工的知识点,也基于华为强大的support网站及一些竞争对手设备命令比对,慢慢在工作中积累了网工相关的知识,在这个平台上面去分享自己理解的点点知识,希望对刚入这个门槛的新人带来点温暖。

尤其是这种带业务的系统又碰到自己知识薄弱点时,面对大佬们的傲慢,项目的紧迫,常常都是累到不想吃饭,只想让我躺会;在这个平台已经入驻一段时间了也没有能够有时间为大家带来知识的分享。

以后有需要了解相关知识的朋友可以私信我,我提供我力所能及的帮助。

仅已此文献给默默、认真、努力生活的朋友们!

夜行书生