Привет! Нужна небольшая помощь с синтаксисом — я настраиваю свой USG для PPPoE-подключения по оптике, всё подключено и работает, но не могу понять, как задать mtu для VLAN, который требует мой провайдер, через файл config.gateway.json. Вот соответствующая часть вывода show configuration:
interfaces {
ethernet eth0 {
vif 201 {
firewall {
in {
name WAN_IN
}
local {
name WAN_LOCAL
}
}
pppoe 2 {
default-route auto
firewall {
in {
name WAN_IN
}
local {
name WAN_LOCAL
}
}
name-server none
password ****************
user-id sanitized
}
}
}
}
А вот JSON-файл:
{
"firewall": {
"options": {
"mss-clamp": {
"interface-type": "pppoe",
"mss": "1452"
}
}
},
"interfaces": {
"ethernet": {
"eth0": {
"mtu": "1492"
}
}
}
}
Что мне нужно добавить, чтобы это применялось именно к VLAN на eth0?
Для примера, вот как выглядит у меня раздел для ERPoE:
interfaces {
ethernet eth0 {
description "CenturyLink WAN (PPPoE)"
duplex auto
poe {
output off
}
speed auto
vif 201 {
description "CenturyLink VLAN"
pppoe 0 {
default-route auto
firewall {
}
mtu 1492
name-server auto
password ****************
user-id sanitized
}
}
}
}
Спасибо всем!!!
interfaces {
ethernet eth0 {
vif 201 {
firewall {
in {
name WAN_IN
}
local {
name WAN_LOCAL
}
}
pppoe 2 {
default-route auto
firewall {
in {
name WAN_IN
}
local {
name WAN_LOCAL
}
}
name-server none
password ****************
user-id sanitized
}
}
}
}
А вот JSON-файл:
{
"firewall": {
"options": {
"mss-clamp": {
"interface-type": "pppoe",
"mss": "1452"
}
}
},
"interfaces": {
"ethernet": {
"eth0": {
"mtu": "1492"
}
}
}
}
Что мне нужно добавить, чтобы это применялось именно к VLAN на eth0?
Для примера, вот как выглядит у меня раздел для ERPoE:
interfaces {
ethernet eth0 {
description "CenturyLink WAN (PPPoE)"
duplex auto
poe {
output off
}
speed auto
vif 201 {
description "CenturyLink VLAN"
pppoe 0 {
default-route auto
firewall {
}
mtu 1492
name-server auto
password ****************
user-id sanitized
}
}
}
}
Спасибо всем!!!
