show ethernet-switching table brief – просмотр таблицы мак-адресов.
Создание вилана
vlans {
v11 {
vlan-id 11;
}
}
Привязка его на порт ge-0/0/23.0:
interfaces {
ge-0/0/23 {
unit 0 {
family ethernet-switching {
port-mode trunk;
vlan {
members v11;
}
native-vlan-id 1;
}
}
}
}
Создание виртуального L3 интерфейса
ex4200> show configuration interfaces vlan
unit 7 {
family inet {
address *.*.*.152/27;
}
}
ex4200> show configuration vlans v7
vlan-id 7;
l3-interface vlan.7;
ospf
protocols {
ospf {
area 0.0.3.44 {
nssa;
interface vlan.7;
}
}
Редистрибуция ospf:
mschedrin@ex4200> show configuration policy-options policy-statement ospf-redistribute
term direct-connected {
from protocol direct;
then accept;
}
term static {
from protocol static;
then accept;
}
term from-ospf {
from protocol ospf;
then next policy;
}
term ios-implicit-deny {
then reject;
}
Когда policy создана надо её повесить на протокол ospf:
set protocols ospf export ospf-redistribute
helper address
mschedrin@ex4200> show configuration forwarding-options
helpers {
bootp {
description "dhcp helper";
server *.*.*.3;
server *.*.*.16;
maximum-hop-count 16;
interface {
vlan.2;
}
}
}
Перед выключением железки
request system power-off