configure
echo "Terminal Configuration"
# Terminal Configuration
terminal
timeout forever
exit
echo "System Configuration"
# System Configuration
system
name "USER_DEVICE_2"
exit
echo "Port Configuration"
# Port Configuration
port
echo "Ethernet - Port Configuration"
# Ethernet - Port Configuration
ethernet 1
no name
exit
ethernet 2
shutdown
no name
exit
ethernet 3
no name
exit
ethernet 4
shutdown
no name
exit
ethernet 5
shutdown
no name
exit
ethernet 6
shutdown
no name
exit
ethernet 101
shutdown
no name
exit
echo "Service Virtual Interface- Port Configuration"
# Service Virtual Interface- Port Configuration
svi 1
no shutdown
exit
exit
echo "Bridge Configuration"
# Bridge Configuration
bridge 1
name "BRIDGE 1"
echo "Bridge Port Configuration"
# Bridge Port Configuration
port 1
no shutdown
exit
port 2
no shutdown
exit
port 3
no shutdown
exit
echo "VLAN Configuration"
# VLAN Configuration
vlan 1303
exit
exit
echo "Flows Configuration"
# Flows Configuration
flows
echo "Classifier Profile Configuration"
# Classifier Profile Configuration
classifier-profile "all" match-any
match all
exit
classifier-profile "MNG" match-any
match vlan 54
exit
classifier-profile "v1303_p1" match-any
match vlan 1303 p-bit 1
exit
classifier-profile "UNTAG" match-any
match untagged
exit
echo "Flow Configuration"
# Flow Configuration
flow "mng_in"
classifier "MNG"
ingress-port ethernet 1
egress-port svi 1 queue 0
no shutdown
exit
flow "mng_out"
classifier "all"
vlan-tag push vlan 54 p-bit fixed 7
ingress-port svi 1
egress-port ethernet 1 queue 0 block 0/1
no shutdown
exit
flow "v1303_p1"
classifier "v1303_p1"
ingress-port ethernet 1
egress-port bridge-port 1 1
reverse- direction block 0/1
no shutdown
exit
flow "v1303_p1_out"
classifier "UNTAG"
vlan-tag push vlan 1303 p-bit fixed 1
ingress-port ethernet 3
egress-port bridge-port 1 3
reverse- direction block 0/1
no shutdown
exit
exit
router 1
name "Router#1"
interface 1
address 10.0.0.1/24
bind svi 1
dhcp-client
client-id mac
exit
no shutdown
exit
static-route 0.0.0.0/0 address 10.0.0.254
exit
exit
configure
exit
echo "Terminal Configuration"
# Terminal Configuration
terminal
timeout forever
exit
echo "System Configuration"
# System Configuration
system
name "USER_DEVICE_2"
exit
echo "Port Configuration"
# Port Configuration
port
echo "Ethernet - Port Configuration"
# Ethernet - Port Configuration
ethernet 1
no name
exit
ethernet 2
shutdown
no name
exit
ethernet 3
no name
exit
ethernet 4
shutdown
no name
exit
ethernet 5
shutdown
no name
exit
ethernet 6
shutdown
no name
exit
ethernet 101
shutdown
no name
exit
echo "Service Virtual Interface- Port Configuration"
# Service Virtual Interface- Port Configuration
svi 1
no shutdown
exit
exit
echo "Bridge Configuration"
# Bridge Configuration
bridge 1
name "BRIDGE 1"
echo "Bridge Port Configuration"
# Bridge Port Configuration
port 1
no shutdown
exit
port 2
no shutdown
exit
port 3
no shutdown
exit
echo "VLAN Configuration"
# VLAN Configuration
vlan 1303
exit
exit
echo "Flows Configuration"
# Flows Configuration
flows
echo "Classifier Profile Configuration"
# Classifier Profile Configuration
classifier-profile "all" match-any
match all
exit
classifier-profile "MNG" match-any
match vlan 54
exit
classifier-profile "v1303_p1" match-any
match vlan 1303 p-bit 1
exit
classifier-profile "UNTAG" match-any
match untagged
exit
echo "Flow Configuration"
# Flow Configuration
flow "mng_in"
classifier "MNG"
ingress-port ethernet 1
egress-port svi 1 queue 0
no shutdown
exit
flow "mng_out"
classifier "all"
vlan-tag push vlan 54 p-bit fixed 7
ingress-port svi 1
egress-port ethernet 1 queue 0 block 0/1
no shutdown
exit
flow "v1303_p1"
classifier "v1303_p1"
ingress-port ethernet 1
egress-port bridge-port 1 1
reverse-
no shutdown
exit
flow "v1303_p1_out"
classifier "UNTAG"
vlan-tag push vlan 1303 p-bit fixed 1
ingress-port ethernet 3
egress-port bridge-port 1 3
reverse-
no shutdown
exit
exit
router 1
name "Router#1"
interface 1
address 10.0.0.1/24
bind svi 1
dhcp-client
client-id mac
exit
no shutdown
exit
static-route 0.0.0.0/0 address 10.0.0.254
exit
exit
configure
exit