Cisco_SW_Config

#en
#conf t

#show interfaces status
#show interface fa0/3 switchport (sh int g0/1 sw)

#show vlan
#sh vlan brief
#show vlan name VLAN_2 (shows info about name "VLAN_2")



Native VLAN
# switchport trunk native vlan 5

#vlan 2 (create vlan2)
∟name

#en
#conf t
#vlan 2 (create vlan2) || #vlan 2,10,15
∟name

# interface fa0/1 || #interface range fa0/4 - 5
∟# switchport mode access
∟# switchport access vlan 2

if trunk
# interface fa0/1 || #interface range fa0/4 - 5
∟# switchport mode trunk
∟# switchport trunk encapsulation dot1q
∟# switchport trunk allowed vlan 1-2,10,15

if need to add||delete vlan:
# interface fa0/22
∟# switchport trunk allowed vlan add 160 || #switchport trunk allowed vlan remove 160


Задание адреса в VLAN
sw3(config)# interface Vlan2
sw3(config-if)# ip address 10.0.2.1 255.255.255.0
sw3(config-if)# no shutdown

Перевод интерфейса в режим 3го уровня
sw3(config)#interface FastEthernet 0/10
sw3(config-if)# no switchport
sw3(config-if)# ip address 192.168.1.2 255.255.255.0
sw3(config-if)# no shutdown

Настройка маршрута по умолчанию:
sw3(config) ip route 0.0.0.0 0.0.0.0 192.168.1.1


do wr
do sh run
line vty 0 15
password 7 

Comments

Popular posts from this blog

Петли L2, методы борьбы (PortFast, LoopGuard, BPDU guard, BPDU filter)

Проброска static маршрута в OSPF

EtherChannel