N1548
Display information on the port
show interfaces switchport gigabitethernet x/x/x
Set ip address
enable
configure
interface vlan x
ip address x.x.x.x/xx
ip default-gateway x.x.x.x
Set user
enable
configure
username user_name password user_password privilege 15
enable password enable_password
Enable SSH
crypto key generate dsa
crypto key generate rsa
ip ssh server
Save configuration changes
wr
Static
enable
configure
interface range 1-4
channel-group 1 mode on
end
show interfaces port-channel 1
Dynamic (LACP)
enable
configure
interface range 1-4
channel-group 1 mode active
end
show interfaces port-channel 1
Remove port from channel group
interface gigabitethernet x/x/1
no channel-group
Create VLAN
vlan vlan_id
VLAN name
name vlan_name
Remove port mode
no switchport mode
Go to interface
interface gigabitethernet x/x/x
Set Access mode
switchport mode access
Set the interface as a member of the specified VLAN
switchport access vlan vlan_id
Set Trunk mode
switchport mode access
Default trunk mode allows all vlans.
switchport trunk allowed vlan all
Add VLAN to the VLAN allowed list
switchport trunk allowed vlan add vlan_id
Remove the listed VLANs from the allowed list
switchport trunk allowed vlan remove vlan_id
Allows all VLANs other than those listed
switchport trunk allowed vlan except vlan_id
Sets the untagged VLAN for the trunk port
switchport trunk native vlan vlan_id
Set General mode
switchport mode access
Add VLAN to the VLAN allowed list
switchport general allowed vlan add vlan_id
Remove the listed VLANs from the allowed list
switchport general allowed vlan remove vlan_id
Set the port VLAN ID
switchport general pvid vlan_id
Set the port to pass untagged packets for the specified VLAN
switchport general allowed vlan add vlan_id untagged
The port will only accept tagged frames. Untagged frames are dropped at ingress.
switchport general acceptable-frame-type tagged-only
Turn off ingress filtering so that all received tagged frames are forwarded whether or not the port is a member of the VLAN in the tag.
switchport general ingress-filtering disable