1、建立隧道
interface ETH-trunk 1 //1为隧道标号,0-7
2、关闭二层接口
隧道模式下:undo switchport
3、设置隧道端口ip
ip address 10.1.1.1 24
4、将物理端口到ETH-trunk
隧道模式下:trunkport gigabit Ethernet 0/0/0 0/0/1
具体配置如下:
<ar1>display current-configuration
[V200R003C00]
#
sysname ar1 //设备名称
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface Eth-Trunk1
undo portswitch //关闭二层接口
ip address 10.1.1.1 255.255.255.0 //设置IP地址
#
interface GigabitEthernet0/0/0
eth-trunk 1//将物理端口加入ETH-trunk 1
#
interface GigabitEthernet0/0/1
eth-trunk 1 //将物理端口加入ETH-trunk 1
#
interface GigabitEthernet0/0/2
ip address 192.168.1.1 255.255.255.0
#
interface NULL0
#
ip route-static 192.168.2.0 255.255.255.0 10.1.1.2 //设置静态路由
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<ar1><ar1>display current-configuration
[V200R003C00]
#
sysname ar1
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface Eth-Trunk1
undo portswitch
ip address 10.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/0
eth-trunk 1
#
interface GigabitEthernet0/0/1
eth-trunk 1
#
interface GigabitEthernet0/0/2
ip address 192.168.1.1 255.255.255.0
#
interface NULL0
#
ip route-static 192.168.2.0 255.255.255.0 10.1.1.2
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<ar1>
标签:聚合,default,trunk,255.255,user,链路,interface,三层,local From: https://blog.51cto.com/u_13560030/6052031