Вы находитесь на странице: 1из 2

set vlan sw

#conf t
#vlan 1 (name vlan assing by user)
#100 (vlan name)
#exit

-----add port to vlan----------------


#conf t
#interface fastethernet *port(0/x)*
#switch access vlan x (number vlan)
#exit

-----set ip sw-----
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int vlan 1
Switch(config-if)#ip ad
Switch(config-if)#ip address 192.168.1.200 255.255.255.0
Switch(config-if)#no shutdown
%LINK-5-CHANGED: Interface Vlan1, changed state to up
Switch(config-if)#
Switch(config-if)#exit

----set Vlan -----


Configuration to create VLAN 2
SwitchA(config)#configure terminal (enter in global configuration
mode)
SwitchA(config)#vlan 2 (defining the vlan
2)
SwitchA(config)#vlan 2 name marketing (assigning the name marketing to vla
n 2)
SwitchA(config)#exit (exit from vlan 2)
Configuration to create VLAN 3
SwitchA(config)#configure terminal (enter in global configuratio
n mode)
SwitchA(config)#vlan 3 (defining the vlan
3)
SwitchA(config)#vlan 3 name management (assigning the name management to vl
an 3)
SwitchA(config)#exit (exit from vlan 3)
Now assigning the ports 2 and 3 to VLAN 2, it must be done from the interface m
ode. Enter the following commands to add port 2 and 3 to VLAN 2.
SwitchA(config)#configure terminal (enter in glo
bal configuration mode)
SwitchA(config)#interface fastethernet 0/2 (select the Ether
net 0 of port 2)
SwitchA(config-if)#switchport access vlan 2 (allot the membersh
ip of vlan 2)
SwitchA(config-if)#exit (
exit from interface 2)
Config mpls
--------------------------------------------------------------------------------
---------------
Step 1 router#conf t >>enables config mode
Step 2 router(config)ip cef(distributed) >>config cisco express forwarding
Step 3 router(config)#int number of interface >>interface to config
Step 4 router(config-if)mpls ip >>config mpls
Step 5 router(config-if)#mpls label protocol ldp >>config ldp
Step 6 router(config)#mpls label protocol ldp >>config ldp on all interface
Step 7 router#show mpls interface >>show config
Config mpls Ẻ te
Step 1 router(config-if)#mpls traffic-eng tunnels >>enable mpls traffic
Step 2 router(config-if)#ip rsvp bandwidth >>enable rsvp
(RSVP ¨ÐãªéÇÔ¸Õ㹡ÒÃÊÃéÒ§àÊé¹·Ò§ÃÐËÇèÒ§ Client áÅÐ ÁÕ¡Òèͧ bandwidth àÍÒäÇéµÅÍ´àÊé¹·Ò§·ÓãË
Step 1 router(config)#router ospf process-id >> config ospf routing
(àÃÒàµÍÃìã¹à¤Ã×Í¢èÒ TCP/IP ¨Ð·Ó¡ÒáÓ˹´àÊ鹷ҧ㹡ÒÃÃѺÊ觢éÍÁÙÅ´éÇÂâ»ÃⵤÍÅ OSPF)
Step 2 router(config-router)#mpls traffic-eng area 0 >> mpls for ospf area0
Step 3 router(config-router)#mpls traffic-eng router-id loopback0
>>specifics that the traffic engineering router identifier for the node is the i
p address associated with interface loopback0

äÁè·ÃÒºÇèÒÃÕ૵ Ẻ ÅéÒ§ user passwd enable ´éÇÂÃÖà»ÅèÒ áºº·ÕèàËÁ×͹à¤Ã×èͧ«×éÍÁÒãËÁèÍèй


- à»Ô´à¤Ã×èͧÁÒãËÁè µÍ¹·ÕèÁѹ¢Öé¹ #### ¡´ Ctrl + break à¾×èÍà¢éÒ Rommon
- ¾ÔÁ¾ì Confreg 0x2142 Enter
- ¾ÔÁ¾ì Reset Enter »Ô´ÊÇÔ·ªì áÅéÇà»Ô´ãËÁè
- à¢éÒ Privilage Mode áÅéǾÔÁ¾ì write erase
- à¢éÒ Config-t áÅéÇ á¡éÃÕ¨ÔÊàµÍÃìãËé¡ÅѺÁÒàËÁ×͹à´ÔÁ
- ¾ÔÁ¾ì Config-register 0x2102 Enter
áÅéÇÍÍ¡ÁÒÍÂÙè Privilage âËÁ´ÍÕ¡¤ÃÑé§ Reload á¤è¹Õé¡çÅéÒ§¤Í¹¿Ô¡à¡èÒ·Ñé§ËÁ´ä´éáÅéǤÃѺ

Вам также может понравиться