Anda di halaman 1dari 4

General

Command reset saved-config undo terminal debug reboot save quit return display interface brief Description Delete the saved configuration Disables the debugging output to the terminal Reboots the system Saves the current configuration to flash Leave current view Return to user view Show the brief interface list

Interface Commands
Command display interface [#/#/#] interface [#/#/#] Description Display interface details Jump into the interface configuration mode

VLAN
Command vlan vlan-id vlan batch { vlan-id1 [ to vlan-id2]}&<1-10> port link-type access port default vlan vlan-id port link-type trunk Creates a VLAN Creates multpile VLANs in a batch Sets the interface type to access. The default interface type is hybrid Specifies the default VLAN of an interface Description

Sets the interface type to trunk port trunk allow-pass vlan {{vlan-id1 [ to vlan-id2 ] } & Adds a trunk interface to VLANs <1-10> | all } port hybrid untagged vlan-id Sets the port to hybrid with untagged to VLAN-ID

Port Isolation
Command port-isolate enable Description Enables isolation of the port

QinQ
Command port link-type dot1q-tunnel port default vlan-id qinq protocol protocol-id Description Configures an interface as a QinQ interface Configures the default VLAN of the interface, that is, the VLAN-ID in the outer tag of frames Configures the protocol type in the outer VLAN tag of frames. By default, the protocol type in the outer VLAN tag is 0x8100

Selective QinQ
Command qinq vlan-translation enable port default vlan vlan-id trust 8021p port vlan-stacking vlan vlan-id1 [ to vlanid2 ] pushvlan vlan-id3 { remark-8021p priority-id | priority-inherit } port trunk allow-pass vlan vlan-id3 Description Enables selective QinQ on an interface Specifies the default VLAN of the interface Configures the interface to trust the 802.1p priority of received frames Configures the interface to add an outer VLAN tag (VLAN3) to frames with specified VLAN-IDs This interface must be addes to the VLAN specified byvlan-id3 using the trunk allow-pass vlan command

GVRP
Command [SW1] gvrp [SW1-Ethernet-id]gvrp Description Enables GVRP globally

Enables GVRP on interface [SW1-Ethernet-id]gvrp registration fixed | forbidden | Changes the GVRP mode, dynamic is the default

STP
Command stp mode stp stp enable Description Set stp mode, the default operation mode is MSTP Enables stp globally

RSTP
Command stp mode rstp stp enable stp priority 4096 Description Set rstp mode, the default operation mode is MSTP Enables stp globally Changes the priority

MSTP
stp region-configuration region-name name instance mst-id vlan-id active region configuration stp instance mst-id root primary Configures MST region information Configures the MST region name Mapping between mst-id and vlan-id Activates the region configuration Configure the switch as the root bridge of mst-id

MPLS and LDP


mpls lsr-id a.b.c.d mpls Set the ID ot the LSR enables the MPLS, must be executed on system and

lsp-trigger all | ip-prefix prefix-list

interface view Triggers LSPs at all routes or the routes according to the prefix-list

static-lsp ingress lsp-name destination dest-addr self-explaining, isnt it. {addr-mask | mask-lenght } {{ nexthop next-hopaddr } | { outgoing-interface interface-type interfacenum } } } out-label out-label-value

MPLS VPN
ip vpn-instance vpn-id route-distinguisher x:y vpn-target x:y both ip binding vpn-instance x:y Starts a VNP instance Associates the route distinguisher to VPN-Instance Create vpn-target extended community for vpninstance, here for both import and export. Bind that interface to the vpn-instance

PPP
Configuration on the ppp server: 1. 2. aaa localuser username password { simple | cipher }passwor d quit int Ser 0/0/0 ppp authentication-mode { ppp | chap } call-in The client side: int Ser 0/0/0 ppp chap local-user username password simplepassword Client side needs a user and the dailin method This discribes the neccessary steps to start the ppp server.

3. 4. 5. 1. 2.

OSPF
ospf oapf area 0.0.0.0 PPP Enters the ospf router view, by default with the process number 1 Enters OSPF Router area 0 configuration view

BGP
bgp as-number peer a.b.c.d as-number as-number peer a.b.c.d connect-interface loopback 0 Static route example: ip route-static 4.4.4.4 32 20.0.0.1 IGBP reachability: peer 1.1.1.1 as-number 65000 peer 1.1.1.1 next-hop-local Uses the local IGP routing table to reach the BGP neighbor. Enters the bgp router view, with the AS number Defines peer Source for multihop

Router on a Stick
int e 0/0/0.1 control-vid 11 dot1q-termination dot1q

Anda mungkin juga menyukai