ZTE的H3C交换机 S5120-series,怎么实现3层交换?
发布网友
发布时间:2022-04-24 20:17
我来回答
共3个回答
热心网友
时间:2022-05-01 23:38
<H3C>display current-configuration
#
sysname H3C
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
#
domain default enable system
#
telnet server enable
#
undo ip ttl-expires
#
acl number 3001
rule 0 permit ip source 129.62.160.197 0 destination 0.0.0.0 255.255.255.0
acl number 3002
rule 0 permit ip source 0.0.0.0 255.255.255.0 destination 129.62.160.197 0
#
vlan 1
#
vlan 2
description wlan
#
vlan 10
description teacher
#
vlan 20
description student
#
vlan 30
description people
#
vlan 100
description to:router
#
radius scheme system
server-type extended
primary authentication 127.0.0.1 1645
primary accounting 127.0.0.1 1646
user-name-format without-domain
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
traffic classifier classifier_Server operator and
if-match acl 3002
traffic classifier classifier_hostB operator and
if-match acl 3001
#
traffic behavior behavior_hostB
car cir 3072 cbs 12000 ebs 12000 green pass red discard yellow pass
traffic behavior behavior_Server
car cir 3072 cbs 12000 ebs 12000 green pass red discard yellow pass
#
qos policy policy_Server
classifier classifier_Server behavior behavior_Server
qos policy policy_hostB
classifier classifier_hostB behavior behavior_hostB
#
user-group system
#
local-user admin
password simple admin
authorization-attribute level 3
service-type telnet
#
interface NULL0
#
interface Vlan-interface1
ip address 192.168.255.254 255.255.255.0
#
interface Vlan-interface2
description wlan
ip address 192.168.0.254 255.255.255.0
#
interface Vlan-interface10
description teacher
ip address 192.168.1.254 255.255.255.0
#
interface Vlan-interface20
description student
ip address 192.168.2.254 255.255.255.0
#
interface Vlan-interface30
description people
ip address 192.168.3.254 255.255.255.0
#
interface Vlan-interface100
ip address 192.168.200.1 255.255.255.252
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan all
#
interface GigabitEthernet1/0/2
#
interface GigabitEthernet1/0/3
port link-type trunk
port trunk permit vlan all
flow-control
#
interface GigabitEthernet1/0/4
port link-type trunk
port trunk permit vlan all
flow-control
#
interface GigabitEthernet1/0/5
port link-type trunk
port trunk permit vlan all
flow-control
#
interface GigabitEthernet1/0/6
port link-type trunk
port trunk permit vlan all
flow-control
#
interface GigabitEthernet1/0/7
port link-type trunk
port trunk permit vlan all
flow-control
#
interface GigabitEthernet1/0/8
port link-type trunk
port trunk permit vlan all
flow-control
#
interface GigabitEthernet1/0/9
port link-type trunk
port trunk permit vlan all
flow-control
#
interface GigabitEthernet1/0/10
port link-type trunk
port trunk permit vlan all
flow-control
#
interface GigabitEthernet1/0/11
port link-type trunk
port trunk permit vlan all
#
interface GigabitEthernet1/0/12
port link-type trunk
port trunk permit vlan all
#
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
port access vlan 100
speed 1000
plex full
#
interface GigabitEthernet1/0/21
shutdown
#
interface GigabitEthernet1/0/22
shutdown
#
interface GigabitEthernet1/0/23
shutdown
#
interface GigabitEthernet1/0/24
speed 1000
plex full
shutdown
#
interface GigabitEthernet1/0/25
port link-type trunk
port trunk permit vlan all
#
interface GigabitEthernet1/0/26
port link-type trunk
port trunk permit vlan all
#
interface GigabitEthernet1/0/27
#
interface GigabitEthernet1/0/28
#
nqa entry imclinktopologypleaseignore ping
type icmp-echo
destination ip 192.168.255.253
frequency 270000
#
ip route-static 0.0.0.0 0.0.0.0 192.168.200.2
#
snmp-agent
snmp-agent local-engineid 800063A203C4CAD94C2777
snmp-agent community read public
snmp-agent community write private
snmp-agent sys-info version all
snmp-agent target-host trap address udp-domain 192.168.255.100 params securityname public
#
nqa schele imclinktopologypleaseignore ping start-time now lifetime 630720000
#
user-interface aux 0 8
user-interface vty 0 4
authentication-mode scheme
#
return
<H3C>
不需要什么命令去开户。
它的三层功能实现,就是单臂路由的形式。不需要写入路由条目,跟路由器的直连路由一个道理。
热心网友
时间:2022-05-02 00:56
楼主这个表述有误。
zte是中兴
h3c是华三,这是两家公司。
s5120-si有8个三层接口地址,超过就不行。
默认启用三层后,不同网段之间是互通的。
热心网友
时间:2022-05-02 02:31
S5120 SI是二层千兆交换机
S5120 EI是三层交换机