Skip to content

Instantly share code, notes, and snippets.

@metrafonic
Last active April 29, 2016 11:40
Show Gist options
  • Save metrafonic/05a06c13a4607c3e883b20d9c35b3954 to your computer and use it in GitHub Desktop.
Save metrafonic/05a06c13a4607c3e883b20d9c35b3954 to your computer and use it in GitHub Desktop.
Rød ruter 1

r-rr-1[a-f] (TKN Pseudowire)

"[a-f]" erstattes med lag bokstav

"x" erstattes med lag nummer

Basic config:

Slett gammel config:

> enable
# write erase

Set hostname

> enable
# configure terminal
(config)# hostname r-rr-1[a-f] //feks r-rr-1b
(config)# no ip domain-lookup
(config)# exit

Set IP address på f0/0 & enable interface:

(config)# interface f0/0
(config-if)# ip address 10.0.x.2 255.255.255.192
(config-if)# no shutdown
# show ip interface brief

VLAN for klient (for de MED switch):

Lag VLAN for PC:


# configure terminal
(config)#interface Vlan10
(config-if)#ip address 10.0.x.65 255.255.255.192
(config-if)#no shutdown

Gi den en port å jobbe på:

# configure terminal
(config)# interface f1/7
(config-if)# switchport access vlan 10
(config-if)# no shutdown
# show vlan-switch

Int for klient (for de UTEN switch)

Set IP address på f1/3 & enable interface:

(config)# interface f1/3
(config-if)# ip address 10.0.x.65 255.255.255.192
(config-if)# no shutdown
# show ip interface brief

DHCP Server:

Brukes mot klientene på TKN

(config)# ip dhcp pool tkn-klient
(dhcp-config)# network 10.0.x.64 255.255.255.192
(dhcp-config)# default-router 10.0.x.65
(dhcp-config)# lease 100
(dhcp-config)# exit

Sjekk dette ved å koble opp på int1/3 (de uten switch), eller int1/7 (de med switch)

Telnet/SSH

Skru på telnet

(config)# username admin priv 15 secret Ving68 //STOR V!!
(config)# line vty 0 2
(config-line)# login local
(config-line)# end

Krypter traffikken (SSH)

(config)# ip domain-name ving68.no
R1(config)# crypto key gen rsa
(config)# ip ssh version 2

Lagre!

# copy running-config startup-config

Pseudowire

enable
conf t
no pseudowire-class tunnel
l2tp-class networkstV3class
authentication
password L2TPv3
exit
pseudowire-class NETWORKPW
encapsulation l2tpv3
protocol l2tpv3 networkstV3class
ip local interface f0/0
interface FastEthernet0/1
description LAN Facing
no ip address
duplex auto
speed auto
xconnect 10.0.7.2   1 encapsulation l2tpv3 pw-class NETWORKPW

r-tkn-1[a-f] (Foregin Agent)

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/mob_ntwks/configuration/15-mt/mob_ntwks-15-mt-book/imo-dhcp-dccoa-fa.html

Basic IP Config:

Set hostname:

> enable
# configure terminal
(config)# hostname r-tkn-1[a-f]
(config)# no ip domain-lookup
(config)# exit

Set Loopback:

(config)#interface Loopback0
(config-if)#ip address 192.168.0.x 255.255.255.255
(config-if)#exit

Set f0/0 (mot interlan) via DHCP

(config)# interface f0/0
(config-if)# ip address dhcp
(config-if)# ip dhcp client mobile renew count 4 interval 25
(config-if)# ip mobile router-service roam
(config-if)# ip mobile router-service collocated
(config-if)# ip mobile router-service hold-down reassociate 2000
(config-if)# no shutdown
# show ip interface brief

Set f0/1 (mot TKN)

(config)# interface f0/1
(config-if)# ip address 192.168.x.1 255.255.255.128
no shutdown

Default router

ip route 0.0.0.0 0.0.0.0 f0/0

STOPP HER COPY R S og lek litt Mobile router ting:

router mobile
ip mobile foreign-agent care-of FastEthernet0/0
ip mobile secure home-agent 192.168.0.7 spi 10x key ascii 100 algorithm md5 mode prefix-suffix
ip mobile router
 address 192.168.0.x 255.255.255.255
 collocated single-tunnel
 home-agent 192.168.0.7
 mobile-network FastEthernet0/1
 register lifetime 60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment