You are on page 1of 3

vlan 50

name cincuenta
vlan 60
name sesenta
int range fa0/1-10
switchport mode access
switchport access vlan 50
int range fa0/11-20
switchport mode access
switchport access vlan 60

Sw2(config)#int g0/2
Sw2(config-if)#switch mode trunk

------------------------------------
------------------------------------

int g0/1
Sw1(config-if)#switchport mode trunk

------------------------------------
------------------------------------

ENCAPSULATION

int g0/0
no shutdown

int g0/0.10
encapsulation dot1q
encapsulation dot1q 10
ip address 192.168.10.1 255.255.255.0

int g0/0
no shutdown

int g0/0.10
encapsulation dot1q
encapsulation dot1q 10
ip address 192.168.10.1 255.255.255.0

servidor a router

R1#conf term
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int g0/1
R1(config-if)#no shut

R1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state


to up

R1(config-if)#no shut
R1(config-if)#ip add
R1(config-if)#ip address 192.168.17.1 255.255.255.0

una sola vlan

sdm preferer

sdm prefer dual-ipv4-and-ipv6 default


sdm prefer routing
do reload
yes

vlan 10
name diez
vlan 20
name veinte
int range fa0/1-10
switchport mode access
switchport access vlan 10
int range fa0/11-20
#switchport mode access
switchport access vlan 20

int vlan 10
ipv6 address 2001:acad:db8:a1::/64
ipv6 address fe80::a1 link-local

int vlan 20
ipv6 address 2001:acad:db8:a2::/64
ipv6 address fe80::a2 link-local

ip add
ip address -------------------
ip address ------------------- link-local

switchport trunk encapsulation


switchport trunk encapsulation

intervlan

You might also like