Cisco CLI Commands… reference guide…

Below I list a CLI Command reference for Cisco routers.

# Configure Interfaces

interface FastEthernet0/0
description SOMEDESCRIPTION
ip address 192.168.1.1 255.255.255.0
no ip proxy-arp
duplex auto
speed auto

OR

interface FastEthernet0
 description Local LAN1
!
interface FastEthernet1
 description Local LAN1
!
interface FastEthernet2
 description Local LAN1
!
interface FastEthernet3
 description Local LAN1
!
interface Vlan1
 description Local LAN
 ip address 192.168.1.1 255.255.255.0

# Configure DHCP

ip dhcp excluded-address 192.168.1.1
!
ip dhcp pool pool1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8
option 66 ascii "http://provisioning.domain.local/yeslink.php"

# Configure default routes

ip route 192.168.1.0 255.255.255.0 10.0.0.25

route of last resort resort

ip route 0.0.0.0 0.0.0.0 10.0.0.96

# Configure NAT to access the internet

interface vlan1
 description LAN
 ip address 10.10.11.1 255.255.255.0
 ip nat inside
 ip virtualreassembly in
!
!
ip access-list extended NAT
 permit ip 10.10.11.0 0.0.0.255 any
 remark access list for NAT
 ip nat inside source list NAT interface Dialer1 overload
!

# Configuring a sample NAT (Network Address Translation) Rule

# Configuring a sample PAT (Port Address Translation) Rule

object network WebServer-HTTP
host 192.168.102.5
nat (inside,outside) static 192.168.1.194 service tcp 80 80

# Configure TelNET

Setting up an access list

ip access-list standard telnet-in
permit 192.168.1.0 0.0.0.255
deny any

Setting up the ports

line vty 0
 session-timeout 30
 access-class telnet-in in
 password password
 login
 transport input all

# Configure system user environments

hostname ROUTERNAME
username test privledge 15 password 0 password

# Configure Vlans

interface Vlan1
 description LAN
 ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
 description VOICE
 ip address 192.168.2.1 255.255.255.0
!
interface Vlan3
 description CCTV
 ip address 192.168.3.1 255.255.255.0
interface FastEthernet0
switch port access vlan 1
 description Local LAN
!
interface FastEthernet1
switch port access vlan 2
 description Local Voice
!
interface FastEthernet2
switch port access vlan 3
 description Local CCTV
!
interface FastEthernet3
switch port access vlan 1
 description Local LAN
!

# Configure FTTC / VDSL

how to configure a Cisco 887 router for VDSL vlan 101 (based on a BT Infinity service – UK)

VDSL Interface and subinterface

interface Ethernet0
no ip address
interface Ethernet0.101
encapsulation dot1Q 101
pppoe enable
pppoe-client dial-pool-number 1

Shut down the ATM interface and subinterfaces

interface ATM0
shutdown

Create the Dialer1 interface

interface Dialer1
description Dialer interface for VDSL
mtu 1492
ip address negotiated
no ip redirects
no ip unreachables
no ip proxy-arp
ip nbar protocol-discovery
ip flow ingress
ip nat outside
ip virtual-reassembly in
encapsulation ppp
ip tcp adjust-mss 1452
dialer pool 1
ppp authentication pap chap ms-chap callin
ppp chap hostname xxxx
ppp chap password xxxx
ppp ipcp address accept
no cdp enable

# Configure Controller DSL 0

controller DSL 0
 mode atm
 line-term cpe
 line-mode 2-wire line-zero
 dsl-mode shdsl symmetric annex B
 line-rate auto
!
interface ATM0
 no ip address
 ip broadcast-address 0.0.0.0
 no atm ilmi-keepalive
!
interface ATM0.1 point-to-point
 ip broadcast-address 0.0.0.0
 snmp trap link-status
 pvc 0/38
  encapsulation aal5mux ppp Virtual-Template1
 !
!
interface ATM0.2 point-to-point
 ip broadcast-address 0.0.0.0
 snmp trap link-status
 pvc 0/21
  oam-pvc manage cc segment direction sink
 !
!
interface Virtual-Template1
 bandwidth 2000
 ip address negotiated
 keepalive 1
 ppp chap hostname USERNAME
 ppp chap password 0 PASSWORD
 ppp pap sent-username USERNAME password 0 PASSWORD
 ppp ipcp route default
 service-policy output parent
 hold-queue 224 in
!

# Configure Configure ATM0/0/0

interface ATM0
 no ip address
 load-interval 30
 no atm ilmi-keepalive
!
interface ATM0.1 point-to-point
 ip address 192.168.1.6 255.255.255.252
 pvc 2/100 
  no oam-pvc manage
  encapsulation aal5mux ip
 !
!

# Configure Dual xDSL connection (ATM 0/0/0 & ATM 0/1/0)

interface ATM0/0/0
no ip address
ip broadcast-address 0.0.0.0
shutdown
no atm ilmi-keepalive
dsl equipment-type CPE
dsl operating-mode GSHDSL symmetric annex B
dsl linerate AUTO
!
interface ATM0/0/0.1 point-to-point
ip broadcast-address 0.0.0.0
pvc 0/38
encapsulation aal5mux ppp dialer
dialer pool-member 1
!
!
interface ATM0/0/0.2 point-to-point
ip broadcast-address 0.0.0.0
pvc 0/21
oam-pvc manage cc segment direction sink
!
!
interface ATM0/1/0
no ip address
ip broadcast-address 0.0.0.0
shutdown
no atm ilmi-keepalive
dsl equipment-type CPE
dsl operating-mode GSHDSL symmetric annex B
dsl linerate AUTO
!
interface ATM0/1/0.1 point-to-point
ip broadcast-address 0.0.0.0
pvc 0/38
encapsulation aal5mux ppp dialer
dialer pool-member 1
!
!
interface ATM0/1/0.2 point-to-point
ip broadcast-address 0.0.0.0
pvc 0/21
oam-pvc manage cc segment direction sink
!
!
interface Dialer0
description ADSL Connection to Internet
ip address negotiated
encapsulation ppp
load-interval 30
dialer pool 1
dialer-group 1
keepalive 1
no cdp enable
ppp chap hostname USERNAME
ppp chap password 0 PASSWORD
ppp pap sent-username USERNAME password 0 PASSWORD
ppp multilink
ppp multilink links maximum 2
ppp multilink links minimum 2
ppp timeout retry 1

# Simple VRF config

ip vrf TABLE1
ip vrf TABLE2

interfaces fa0/0
ip vrf forwarding TABLE1
ip address 1.1.1.1 255.255.255.0

interfaces fa0/0
ip vrf forwarding TABLE2
ip address 2.2.2.2 255.255.255.0

Show ip vrf status

show ip vrf

Using VRF in OSPF

router ospf 1 vrf TABLE1
network 1.1.1.1 0.0.0.0 area 0

router ospf 2 vrf TABLE2
network 2.2.2.2 0.0.0.0 area 0

seeing global routes

show ip route

Seeing routes in table1

show ip route vrf TABLE1

Seeing routes in table2

show ip route vrf TABLE2

# Rip Configuration

router rip
network 10.0.0.0
network 192.168.1.1
no auto-summary

# OSPF Configuration

router ospf 1
 network 10.0.0.0 0.255.255.255 area 0
 network 20.0.0.0 0.255.255.255 area 0
!

# BGP Configuration

router bgp 65501
 neighbor 10.10.10.2 
 remote-as 2000
 password 
 ebgp-multihop 2
 update-source loopback0
 address-family ipv4 unicast 
  route-policy xxxxx in 
 !
!
!
router static
 address-family ipv4 unicast
 10.10.10.2/32 TenGigE0/1
 commit
!

# Connect two Cisco Routers together with G.SHDSL Point-Point
ROUTER 1 : Cisco 1841

interface ATM0/0/0
 ip address 192.168.1.1 255.255.255.252
 no atm ilmi-keepalive
 dsl equipment-type CO
 dsl operating-mode GSHDSL symmetric annex A
 dsl linerate AUTO
!
interface ATM0/0/0.1 point-to-point
 no snmp trap link-status
 pvc 2/100 
  oam-pvc 0
  encapsulation aal5mux ip
 !
!
interface ATM0/1/0
 ip address 192.168.1.5 255.255.255.252
 no atm ilmi-keepalive
 dsl equipment-type CO
 dsl operating-mode GSHDSL symmetric annex A
 dsl linerate AUTO
!
interface ATM0/1/0.1 point-to-point
 no snmp trap link-status
 pvc 2/100 
  oam-pvc 0
  encapsulation aal5mux ip
 !
!

Router 2 : Cisco 877

controller DSL 0
 mode atm
 line-term cpe
 line-mode auto enhanced
 dsl-mode shdsl symmetric annex A
interface ATM0
 no ip address
 load-interval 30
 no atm ilmi-keepalive
!
interface ATM0.1 point-to-point
 ip address 192.168.1.6 255.255.255.252
 pvc 2/100 
  no oam-pvc manage
  encapsulation aal5mux ip

# Factory Reset Vyatta

erase nvram: all

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
This entry was posted in How To Guides and tagged , , , , , , , , , , , , , , . Bookmark the permalink.

Comments are closed.