H3C 5120V3-28S-LI交换机可以直接连接专线配置上网吗?配置了NAT还是上不了呢?配置如下:
[BEGIN] 2024/9/6 10:20:13
[H3C]dis cur
#
version 7.1.070, Release 6343P05
#
sysname H3C
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
dhcp enable
#
dns proxy enable
dns server 221.7.127.68
dns server 221.7.136.68
#
lldp global enable
#
password-recovery enable
#
vlan 1
#
vlan 6
#
vlan 100
#
stp global enable
#
dhcp server ip-pool 6
gateway-list 192.168.6.1
network 192.168.6.0 mask 255.255.255.0
dns-list 221.7.127.68 221.7.136.68
#
interface NULL0
#
interface Vlan-interface1
#
interface Vlan-interface6
description to 六楼会议室
ip address 192.168.6.1 255.255.255.0
packet-filter 3000 inbound
nat static enable
dhcp server apply ip-pool 6
#
interface Vlan-interface100
ip address 121.31.57.225 255.255.255.224
packet-filter 3000 outbound
#
interface GigabitEthernet1/0/1
port access vlan 6
#
interface GigabitEthernet1/0/2
port access vlan 6
#
interface GigabitEthernet1/0/3
#
interface GigabitEthernet1/0/4
#
interface GigabitEthernet1/0/5
#
interface GigabitEthernet1/0/6
#
interface GigabitEthernet1/0/7
#
interface GigabitEthernet1/0/8
#
interface GigabitEthernet1/0/9
#
interface GigabitEthernet1/0/10
#
interface GigabitEthernet1/0/11
#
interface GigabitEthernet1/0/12
#
interface GigabitEthernet1/0/13
#
interface GigabitEthernet1/0/14
#
interface GigabitEthernet1/0/15
#
interface GigabitEthernet1/0/16
#
interface GigabitEthernet1/0/17
#
interface GigabitEthernet1/0/18
#
interface GigabitEthernet1/0/19
#
interface GigabitEthernet1/0/20
#
interface GigabitEthernet1/0/21
#
interface GigabitEthernet1/0/22
#
interface GigabitEthernet1/0/23
#
interface GigabitEthernet1/0/24
port link-type trunk
port trunk permit vlan all
packet-filter 3000 outbound
#
interface Ten-GigabitEthernet1/0/25
#
interface Ten-GigabitEthernet1/0/26
#
interface Ten-GigabitEthernet1/0/27
#
interface Ten-GigabitEthernet1/0/28
#
scheduler logfile size 16
#
line class aux
user-role network-admin
#
line class vty
user-role network-operator
#
line aux 0
user-role network-admin
#
line vty 0 63
user-role network-operator
#
ip route-static 0.0.0.0 0 121.31.57.225
#
ifmonitor crc-error slot 1 high-threshold 1000 low-threshold 100 interval 30
ifmonitor input-error slot 1 high-threshold 1000 low-threshold 100 interval 30
ifmonitor output-error slot 1 high-threshold 1000 low-threshold 100 interval 30
#
acl number 3000
rule 0 permit ip
#
radius scheme system
user-name-format without-domain
#
domain system
#
domain default enable system
#
role name level-0
description Predefined level-0 role
#
role name level-1
description Predefined level-1 role
#
role name level-2
description Predefined level-2 role
#
role name level-3
description Predefined level-3 role
#
role name level-4
description Predefined level-4 role
#
role name level-5
description Predefined level-5 role
#
role name level-6
description Predefined level-6 role
#
role name level-7
description Predefined level-7 role
#
role name level-8
description Predefined level-8 role
#
role name level-9
description Predefined level-9 role
#
role name level-10
description Predefined level-10 role
#
role name level-11
description Predefined level-11 role
#
role name level-12
description Predefined level-12 role
#
role name level-13
description Predefined level-13 role
#
role name level-14
description Predefined level-14 role
#
user-group system
#
local-user admin class manage
service-type http https
authorization-attribute user-role network-admin
#
local-user clouduser class manage
password hash $h$6$s3l8P6afS+hGxYN+$uesogbvpz6SbgKkXEfpa/wdIF9D+QKfw0n+tnwPvqvBePxr9pIL8zSzVNuRpIrM/eG4SaFCn1KueCDtBUP0VoQ==
service-type http
authorization-attribute user-role network-admin
#
local-user h3c class manage
password hash $h$6$XWVb8xsFzAnha3cr$N6LRt5bB+BrMuvkV0x7E28H3oNSB5iKKp+8z8foJ9w5JZzS8h6ckAGXwayWcK+9hHdDVBKvKOXzKs3LDPaUl6w==
service-type http https
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
nat static outbound 192.168.6.0 121.31.57.226
#
netconf soap http enable
#
ip http enable
#
cloud-management server domain cloudnet.h3c.com
#
return
[END] 2024/9/6 10:20:30
(0)
最佳答案
您好,不行的,交换机不支持NAT
(0)
网上说支持呀?H3C S5120V3-28S-LI支持NAT。 H3C S5120V3-28S-LI交换机支持NAT(网络地址转换)功能。NAT是一种在网络层将IP数据包的源地址和目的地址进行转换的技术,它允许一个IP网络通过一个有限的公网IP地址空间访问另一个较大的私网IP地址空间,或者反之。这种技术对于实现网络地址的复用和隐藏内部网络的细节非常有用,特别是在需要将内部网络连接到互联网时。 H3C S5120V3-28S-LI支持的网络协议和功能中包括了NAT,这意味着它能够支持IPv4/IPv6静态路由、RIP/RIPng、OSPF V1/V2/V3等路由协议,这些协议的实现通常需要NAT功能的支持。因此,H3C S5120V3-28S-LI交换机具备处理NAT转换的能力,可以满足企业在网络架构中对NAT功能的需求1。
这个所谓的网上的答案过于抽象,槽点极多,不像是碳基生命写的。。。。。。交换机确实多数不支持NAT或只支持一对一静态NAT。你要想做那种让多个设备一起上网的NAT,需要加路由器这类设备才行。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
这个所谓的网上的答案过于抽象,槽点极多,不像是碳基生命写的。。。。。。交换机确实多数不支持NAT或只支持一对一静态NAT。你要想做那种让多个设备一起上网的NAT,需要加路由器这类设备才行。