交换机配置
<Huawei>u t m
Info: Current terminal monitor is off.
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done
[Huawei]sy LSW1
[LSW1]
[LSW1]INT V
[LSW1]INT Vlanif 10
[LSW1-Vlanif10]IP ADD 192.168.1.254 24
[LSW1]INT Vlanif 20
[LSW1-Vlanif20]IP ADD 192.168.2.254 24
[LSW1-Vlanif20]Q
[LSW1]INT G0/0/2
[LSW1-GigabitEthernet0/0/2]port link-type A
[LSW1-GigabitEthernet0/0/2]port link-type access
[LSW1-GigabitEthernet0/0/2]port default vlan 10
[LSW1-GigabitEthernet0/0/2]Q
[LSW1]INT G0/0/3
[LSW1-GigabitEthernet0/0/3]port link-type access
[LSW1-GigabitEthernet0/0/3]port default vlan 20
[LSW1-GigabitEthernet0/0/3]Q
[LSW1]INT Vlanif 1
[LSW1-Vlanif1]IP ADD 192.168.11.1 24
[LSW1-Vlanif1]Q
动态NAT配置及简单应用
最新推荐文章于 2023-07-20 16:03:51 发布
本文介绍了如何配置动态NAT,通过华为交换机和路由器的配置步骤,展示了如何将VLAN 10和VLAN 20的设备通过NAT转换访问外部网络。详细步骤包括创建VLAN、配置接口IP、设置静态路由以及定义NAT地址池和ACL,以实现内部网络设备对外部网络的访问。
摘要由CSDN通过智能技术生成