Configuration requirements: service VLAN 100 and 200, management VLAN 300
Manage IP 192168.1.2 255.255.255.0 gateway 192168.1.1
Script: hostname mingzi
config
create vlan 100,200,300 active
interface line 1
switchport mode trunk
switchport trunk allowed vlan 100,200,300 confirm
interface client 1
switchport mode access
switchport access vlan 100
interface client 2
switchport mode access
switchport access vlan 200
exitip address 192.168.1.2 255.255.255.0 300
ip default-gateway 192.168.1.1endwr
The ones marked in red can be modified according to your needs.
Current configuration. mingzi#show run
mingzi#show running-config
system current configuration:
command in view_mode
command in config_mode first-step
create vlan 100,200,300 active (here created valn).
ethernet cfm domain md-name mdlevel0default level 0
command in enable_mode
hostname mingzi (this is the modified name).
command in service_mode
service level0maname level 0
command in port_mode
interface line 1
Switchport trunk allowed VLAN 100,200,300 (this is the transparent valn).
switchport trunk untagged vlan remove 1
switchport mode trunk (this is the modified port mode).
interface client 1
Switchport Access VLAN 100 (this is a 1-port resolved valn).
interface client 2
Switchport Access VLAN 200 (this is a 2-port resolved valn).
command in vlan configuration mode
command in config_mode
ip address 192.168.1.2 255.255.255.0 300 line 1 client 1-4 (this is the administrative information of the configuration).
ip default-gateway 192.168.1.1 (This is the management gateway).
To meet the requirements, service VLAN 100 and 200, management VLAN 300
Manage IP 192168.1.2 255.255.255.0 gateway 192168.1.1
Script: hostname mingzi
config
create vlan 100,200,300 active
interface line 1
switchport mode trunk
switchport trunk allowed vlan 100,200,300 confirm
interface client 1
switchport mode access
switchport access vlan 100
interface client 2
switchport mode access
switchport access vlan 200
exitip address 192.168.1.2 255.255.255.0 300
ip default-gateway 192.168.1.1endwr
The ones marked in red can be modified according to your needs.
Current configuration. mingzi#show run
mingzi#show running-config
system current configuration:
command in view_mode
command in config_mode first-step
create vlan 100,200,300 active (here created valn).
ethernet cfm domain md-name mdlevel0default level 0
command in enable_mode
hostname mingzi (this is the modified name).
command in service_mode
service level0maname level 0
command in port_mode
interface line 1
Switchport trunk allowed VLAN 100,200,300 (this is the transparent valn).
switchport trunk untagged vlan remove 1
switchport mode trunk (this is the modified port mode).
interface client 1
Switchport Access VLAN 100 (this is a 1-port resolved valn).
interface client 2
Switchport Access VLAN 200 (this is a 2-port resolved valn).
command in vlan configuration mode
command in config_mode
ip address 192.168.1.2 255.255.255.0 300 line 1 client 1-4 (this is the administrative information of the configuration).
ip default-gateway 192.168.1.1 (This is the management gateway).