一. LAN下基本设置

1.给设备改名:

conf t

hostname hostname_new

2.给设备设置ip地址:

conf t

int interface_type

ip add ip地址 掩码

no sh

3.console设置:

conf t

line con 0

password password_new

login

4.远程密码设置:

conf t

line vty 0 4

password password_new

login

5.vlan创建:

(1)

特权下设置   vlan database

                    vlan vlan_number

                   name vlan_name

(2)

conf t

vlan vlan_number vlan vlan_name

6.把接口划分给vlan:

conf t

int range 接口名-接口名

swit acce vlan vlan_number

7.设置中继

int interface_type

swit mode trunk

8.设置中继线上allow 或者deny哪个vlan在中继线上通信

int interface-type

swit allow vlan add(remove) vlan vlan_number