- setting hostname
hostname [name of switch]
- vlan configuration
vlan 10
name Management - telnet configuration
line vty 0 4
login authentication default
login authorization default - time & ntp configuration
clocktime coniguration
Time-zone WIB 7
ntp server [ip ntp server] - lldp configuration (show of neighborship devices)
lldp run - ip configuration
interface Vlan 10
ip address 10.11.12.13 255.255.255.0 - interface configuration
interface GigabitEthernet0/9
description “ Port Trunk“
switchport mode trunk
switchport trunk vlan-allowed [all / x]
interface GigabitEthernet0/1
description “Port Access“
switchport mode access
switchport pvid (vlan id) - ip routing
ip default-gateway
- banner message
text ****************************************
text * User Access Verification *
text * Login authentication *
text ****************************************
- save configuration
write - QnQ port configuration
interface GigaEthernet0/1
description “Port access to user ”
switchport pvid 200
interface GigaEthernet0/9
description “Port trunk to POP”
switchport trunk vlan-allowed 10,200
switchport mode dot1q-tunnel-uplink