Cisco - ether42/bootable-usb GitHub Wiki

To display the actual configuration:

show running-config

To save the actual configuration:

write memory

Most of the following commands should be done in configuration mode:

configure terminal

Basic configuration

Configure the hostname:

hostname sw-01

Only one interface can be configured as a DHCP client:

interface vlan 102
ip address dhcp

Configure automatic IPv6:

interface vlan 102
ipv6 address autoconfig

Configure a remote log server:

logging origin-id hostname
logging host log.administrative.lorn.space

Enable the SSH server:

ip ssh server

VLAN

interface vlan 99
name bridge
interface vlan 100
name client
interface vlan 101
name service
interface vlan 102
name administrative

Interfaces

This is a 10-port switch.

Two hosting machines on port 1 & 2:

interface range GigabitEthernet 1-2
switchport mode trunk
switchport trunk native vlan 1
switchport trunk allowed vlan add 99-102

Supposing some wired client machines will be later added:

interface range GigabitEthernet 3-9
switchport mode access
switchport access vlan 100

The uplink to the bridged connection:

interface GigabitEthernet 10
switchport mode access
switchport access vlan 99