VPN [Cisco Router - PPTP Server]
Tuesday, July 15, 20141. Configure VPDN with dial in VPN from Microsoft VPN Client
RO-PPTP(config)# vpdn enable
RO-PPTP(config)# vpdn-group PPTP-DIALIN
RO-PPTP(config-vpdn)# accept-dialin
RO-PPTP(config-vpdn)# protocol pptp
RO-PPTP(config-vpdn)# virtual-template 1
RO-PPTP(config-vpdn)# exit
2. Activate interface from IP Dial In to Microsoft VPN Client and LAN wan to access from out leat VPN ini.
RO-PPTP(config)# interface Ethernet5/0
RO-PPTP(config-if)# description DIAL-IN IP INTERFACE FROM OUTSIDE
RO-PPTP(config-if)# ip address 202.150.64.81 255.255.255.240
RO-PPTP(config-if)# no shutdown
RO-PPTP(config)# interface Ethernet5/1
RO-PPTP(config-if)# description SECURED-LAN
RO-PPTP(config-if)# ip address 192.168.0.254 255.255.255.0
RO-PPTP(config-if)# no shutdown
3. Create Virtual-template untuk sebagai virtual interface untuk diapply ke inbound VPN connections.
IP menggunakan unnunmbered E5/1 agar nantinya IP yang didapat oleh
Microsoft VPN client dalam satu subnet dengan IP Secured-LAN.
IP client diperoleh dari DHCP dari Pool Address pptp-pool (misalnya)
RO-PPTP(config)# interface Virtual-Template1
RO-PPTP(config-if)# ip unnumbered ethernet5/1
RO-PPTP(config-if)# peer default ip address pool pptp-pool
RO-PPTP(config-if)# ppp encrypt mppe auto required
(Bila Router Anda tidak support, lewatkan saja & di Micorosoft VPN client dibagian security, Require Data Encryptionnya tidak usah di check-list / centang).
RO-PPTP(config-if)# ppp authentication ms-chap ms-chap-v2 chap pap
(enable semua bila perlu chap/pap selain Microsoft)
4. Create Pool IP Address untuk VPN ‘pptp-pool’ (misal untuk 20 user / ip) & pastikan IP pool tersebut tidak dipakai di Secured-LAN
RO-PPTP(config)# ip local pool pptp-pool 192.168.0.100 192.168.0.119
5. Create Account untuk login VPN
RO-PPTP(config)# username vpdn password 0 pptp
6. Configure Autentikasi PPP vpn ini ke local (Router) atau selanjutnya ke Radius bila memang sudah available.
RO-PPTP(config)# aaa new-model
RO-PPTP(config)# aaa authentication ppp default local
Berikut Konfigurasi Lengkap (hanya vpdn saja) :
================================================
username vpdn password 0 pptp
!
aaa new-model
aaa authentication ppp default local
!
vpdn enable
!
vpdn-group PPTP-DIALIN
accept-dialin
protocol pptp
virtual-template 1
!
interface Ethernet5/0
description DIAL-IN IP INTERFACE FROM OUTSIDE
ip address 202.150.64.81 255.255.255.240
!
interface Ethernet5/1
description SECURED-LAN
ip address 192.168.0.254 255.255.255.0
!
interface Virtual-Template1
ip unnumbered Ethernet0/1
peer default ip address pool pptp-pool
ppp encrypt mppe auto required
ppp authentication ms-chap ms-chap-v2 chap pap
!
ip local pool defaultpool 192.168.0.100 192.168.0.119
================================================
WAN - Leased line connection
Monday, April 13, 2009interface Serial1/0
description ***Leased line from point A to point B***
ip address 58.139.10.38 255.255.255.252
encapsulation hdlc (or encapsulation ppp)
...
Multilink PPP for DDR and ISDN
Building configuration...
Current configuration : 4959 bytes
!
version 12.2
!
hostname TEST_MLPPP
!
enable password 7 13061E010803
!
ip subnet-zero
!
ip cef
no ip domain lookup
!
isdn switch-type primary-net5
!
!
controller E1 6/0 "1st LL"
channel-group 0 timeslots 1-30
!
controller E1 6/1 "2nd LL"
channel-group 0 timeslots 1-30
!
controller E1 6/2 "3rd LL"
channel-group 0 timeslots 1-30
!
controller E1 6/3
!
controller E1 6/4
!
controller E1 6/5 "1st ISDN PRI"
pri-group timeslots 1-30
!
controller E1 6/6 "2nd ISDN PRI"
pri-group timeslots 1-30
!
controller E1 6/7 "3rd ISDN PRI"
pri-group timeslots 1-30!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Multilink1 "Main interface represent the 3 LLs"
ip address 60.140.10.126 255.255.255.252
no ip redirects
no ip proxy-arp
backup interface Dialer2 "ISDN backup with 3xPRIs"
no cdp enable
ppp multilink
ppp multilink links minimum 3 mandatory
multilink load-threshold 1 outbound
multilink-group 1
!
interface FastEthernet0/0
description *** Connection to CE LAN ***
ip address 10.1.1.1 255.255.255.0
duplex auto
speed auto
!
!
interface Serial6/0:0 "1st LL"
ip address 60.140.10.34 255.255.255.252
encapsulation ppp
no fair-queue
ppp multilink
multilink-group 1
!
interface Serial6/1:0 "2nd LL"
ip address 60.140.7.254 255.255.255.252
encapsulation ppp
no fair-queue
ppp multilink
multilink-group 1
!
interface Serial6/2:0 "3rd LL"
ip address 60.140.10.38 255.255.255.252
encapsulation ppp
no fair-queue
ppp multilink
multilink-group 1
!
interface Serial6/5:15 "1st ISDN PRI"
no ip address
encapsulation ppp
dialer pool-member 1
isdn switch-type primary-net5
ppp multilink
!
interface Serial6/6:15 "2nd ISDN PRI"
no ip address
encapsulation ppp
dialer pool-member 1
isdn switch-type primary-net5
ppp multilink
!
interface Serial6/7:15 "3rd ISDN PRI"
no ip address
encapsulation ppp
dialer pool-member 1
isdn switch-type primary-net5
ppp multilink
!
!
interface Dialer2 "Main interface represent the 3 ISDN PRIs"
ip address negotiated
encapsulation ppp
dialer pool 1
dialer idle-timeout 600
dialer string 22220000
dialer load-threshold 1 outbound
dialer-group 1
no fair-queue
ppp chap hostname abc@abc.com
ppp chap password 7 070C31
ppp multilink links minimum 90 mandatory
!
!
ip classless
ip route 0.0.0.0 0.0.0.0 60.140.10.125
ip route 0.0.0.0 0.0.0.0 Dialer2 230
no ip http server
!
!
!
dialer-list 1 protocol ip permit
!
!
!
end
ADSL backup
version 12.3
!
hostname ADSL BACKUP
!
ip subnet-zero
!
vpdn enable
!
vpdn-group pppoe
!
interface FastEthernet0/0
description LAN NETWORK
ip address 172.16.10.1 255.255.255.0
ip nat inside
ip tcp adjust-mss 1452
duplex auto
speed auto
!
interface Serial0/0/0
description WAN – PRIMARY LINK
ip address 58.139.38.58 255.255.255.252
encapsulation ppp
clockrate 2000000
!
interface ATM0/1/0
no ip address
no atm ilmi-keepalive
dsl operating-mode auto
!
interface ATM0/1/0.1 point-to-point
pvc 0/40
encapsulation aal5snap
pppoe-client dial-pool-number 1
!
!
interface Dialer1
description WAN – ADSL BACKUP LINK
ip address negotiated
encapsulation ppp
dialer pool 1
dialer persistent
dialer-group 1
no cdp enable
ppp authentication pap callin
ppp pap sent-username backup1@dsl password dsltest
ppp multilink
!
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0/0/0
ip route 0.0.0.0 0.0.0.0 Dialer1 230
ip nat inside source list 1 interface Dialer1 overload
!
end
ADSL over Ethernet (Modem bridge and Router dial)
RouterX#sh run
Building configuration...
Current configuration : 1480 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RouterX
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$OGqn$WnmL8LrQMH6gRxNzTiqTk1
enable password cisco
!
no aaa new-model
!
resource policy
!
no network-clock-participate slot 1
no network-clock-participate wic 0
ip subnet-zero
ip cef
!
!
no ip dhcp use vrf connected
!
!
no ip ips deny-action ips-interface
vpdn enable
vpdn ip udp ignore checksum
!
vpdn-group 1
request-dialin
protocol pppoe
!
!
no ftp-server write-enable
!
!
!
!
!
no crypto isakmp ccm
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
!
!
interface Dialer1
ip address negotiated
ip mtu 1492
encapsulation ppp
no ip mroute-cache
dialer pool 1
dialer-group 1
ppp authentication chap callin
ppp chap hostname abc@test.com.my
ppp chap password 0 abc
ppp pap sent-username abc@test.com.my password 0 abc
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
!
no ip http server
no ip http secure-server
!
access-list 1 permit any
dialer-list 1 protocol ip permit
!
!
control-plane
!
!
!
!
end
WAN - ISDN bonding up to 8 PRIs in IPVPN network
ISDN-BONDING-UP-TO-7PRI#sh run
Building configuration...
!
version 12.2
!
hostname ISDN-BONDING-UP-TO-7PRI
!
ip subnet-zero
ip cef
!
isdn switch-type primary-net5
!
controller E1 1/0
channel-group 0 timeslots 1-30
description DQ4490002
!
controller E1 1/1
shutdown
!
controller E1 1/2
shutdown
!
controller E1 1/3
shutdown
!
controller E1 1/4
framing NO-CRC4
pri-group timeslots 1-30
description *** 1ST PRI ****
!
controller E1 1/5
framing NO-CRC4
pri-group timeslots 1-30
description *** 2ND PRI ****
!
controller E1 1/6
framing NO-CRC4
pri-group timeslots 1-30
description *** 3RD PRI ****
!
controller E1 1/7
framing NO-CRC4
pri-group timeslots 1-30
description *** 4TH PRI ****
!
controller E1 2/0
framing NO-CRC4
pri-group timeslots 1-30
description *** 5TH PRI ****
!
controller E1 2/1
pri-group timeslots 1-30
description *** 6TH PRI ****
!
controller E1 2/2
pri-group timeslots 1-30
description *** 7TH PRI ****
!
controller E1 2/3
pri-group timeslots 1-30
description *** 8TH PRI ****
!
controller E1 2/4
shutdown
!
controller E1 2/5
shutdown
!
controller E1 2/6
shutdown
!
controller E1 2/7
shutdown
!
interface GigabitEthernet0/1
ip address 200.10.10.2 255.255.255.0
no keepalive
speed 100
media-type rj45
!
interface Serial1/0:0
description ***LEASED LINE ***
backup delay 5 300
backup interface Dialer0
ip address 59.139.19.34 255.255.255.252
!
interface Serial1/4:15
no ip address
encapsulation ppp
dialer pool-member 1
isdn switch-type primary-net5
ppp multilink
!
interface Serial1/5:15
no ip address
encapsulation ppp
dialer pool-member 1
isdn switch-type primary-net5
ppp multilink
!
interface Serial1/6:15
no ip address
encapsulation ppp
dialer pool-member 1
isdn switch-type primary-net5
ppp multilink
!
interface Serial1/7:15
no ip address
encapsulation ppp
dialer pool-member 1
isdn switch-type primary-net5
ppp multilink
!
interface Serial2/0:15
no ip address
encapsulation ppp
dialer pool-member 1
isdn switch-type primary-net5
ppp multilink
!
interface Serial2/1:15
no ip address
encapsulation ppp
dialer pool-member 1
isdn switch-type primary-net5
ppp multilink
!
interface Serial2/2:15
no ip address
encapsulation ppp
dialer pool-member 1
isdn switch-type primary-net5
ppp multilink
!
interface Serial2/3:15
no ip address
encapsulation ppp
dialer pool-member 1
isdn switch-type primary-net5
ppp multilink
!
interface Dialer0
ip address negotiated
encapsulation ppp
dialer pool 1
dialer idle-timeout 600
dialer string
dialer load-threshold 1 outbound
dialer-group 1
ppp chap hostname abc@abc.com
ppp chap password abc
multilink min-links 240 (it can support up to 255 B-channels)
!
ip classless
ip route 0.0.0.0 0.0.0.0 59.139.19.33
ip route 0.0.0.0 0.0.0.0 Dialer0 230
!
dialer-list 1 protocol ip permit
!
end
MULTIHOMING ENVIRONMENT IN MPLS NETWORK
PE AAA
!
ip vrf V322:POCIP
rd 12345:1304
route-target export 12345:1295
route-target export 12345:102
route-target import 12345:1295
route-target import 12345:1296
!
interface Serial8/0/1.1/1/6/3:0
description ***LEASED LINE TO CE1***
ip vrf forwarding V322:POCIP
ip address 59.139.19.33 255.255.255.252
no fair-queue
service-policy input apply_no_qos
!
address-family ipv4 vrf V322:POCIP
redistribute connected
redistribute static
neighbor 59.139.19.34 remote-as 10
neighbor 59.139.19.34 activate
neighbor 59.139.19.34 as-override
neighbor 59.139.19.34 allowas-in 10
maximum-paths eibgp 4
default-information originate
no auto-summary
no synchronization
exit-address-family
!
ip access-list extended V322:POCIP_VPNSC_GREY_MGMT_ACL
permit ip 59.139.19.32 0.0.0.3 any
!
route-map grey_mgmt_vpn_TMIPVPN_V322:POCIP permit 10
match ip address V322:POCIP_VPNSC_GREY_MGMT_ACL
set extcommunity rt 12345:1001 additive
!
PE BBB
!
ip vrf V368:POCIP
rd 12345:1349
export map grey_mgmt_vpn_TMIPVPN_V368:POCIP
route-target export 12345:1295
route-target export 12345:102
route-target import 12345:1000
route-target import 12345:1295
route-target import 12345:1296
!
!
interface Serial8/0/1.1/1/1/2:0
description ***LEASED LINE TO CE2***
ip vrf forwarding V368:POCIP
ip address 59.139.19.37 255.255.255.252
no fair-queue
service-policy input apply_no_qos
!
!
address-family ipv4 vrf V368:POCIP
redistribute connected
redistribute static
neighbor 59.139.19.38 remote-as 10
neighbor 59.139.19.38 activate
neighbor 59.139.19.38 as-override
neighbor 59.139.19.38 allowas-in 10
maximum-paths eibgp 4
no auto-summary
no synchronization
exit-address-family
!
ip access-list extended V368:POCIP_VPNSC_GREY_MGMT_ACL
permit ip 59.139.19.36 0.0.0.3 any
!
route-map grey_mgmt_vpn_TMIPVPN_V368:POCIP permit 10
match ip address V368:POCIP_VPNSC_GREY_MGMT_ACL
set extcommunity rt 12345:1001 additive
!
ROUTER CE1
CE1-AAA#sh run
!
version 12.2
!
ip subnet-zero
!
controller E1 6/0
channel-group 0 timeslots 1-30
!
interface FastEthernet0/0
ip address 200.10.10.1 255.255.255.0
duplex auto
speed 100
!
interface Serial6/0:0
description ***LEASED LINE TO PE AAA***
ip address 59.139.19.34 255.255.255.252
no fair-queue
!
router ospf 9191
log-adjacency-changes
redistribute connected subnets
redistribute static subnets
redistribute bgp 10 subnets
network 200.10.10.0 0.0.0.255 area 0
!
router bgp 10
no synchronization
bgp log-neighbor-changes
redistribute static metric 1
redistribute ospf 9191 metric 1 match internal external 1 external 2
neighbor 59.139.19.33 remote-as 12345
neighbor 59.139.19.33 allowas-in 10
neighbor 200.10.10.2 remote-as 10
default-information originate
no auto-summary
!
ip classless
!
!
end
ROUTER CE2
CE2-BBB#sh run
Building configuration...
!
version 12.2
!
ip subnet-zero
!
controller E1 1/0
channel-group 0 timeslots 1-31
!
interface GigabitEthernet0/1
ip address 200.10.10.2 255.255.255.0
duplex auto
speed 100
media-type rj45
no negotiation auto
!
interface Serial1/0:0
description ***LEASED LINE TO PE BBB***
ip address 59.139.19.38 255.255.255.252
no fair-queue
!
router ospf 9191
log-adjacency-changes
redistribute connected subnets
redistribute static subnets
redistribute bgp 10 subnets
network 200.10.10.0 0.0.0.255 area 0
!
router bgp 10
no synchronization
bgp log-neighbor-changes
redistribute static metric 1
redistribute ospf 9191 metric 1 match internal external 1 external 2
neighbor 59.139.19.37 remote-as 12345
neighbor 59.139.19.37 allowas-in 10
neighbor 200.10.10.5 remote-as 10
default-information originate
no auto-summary
!
ip classless
!
end
WAN - ISDN bonding in Frame Relay network
Router HQ
!
version 12.0
no service password-encryption
!
hostname HQ
!
enable secret aaa
enable password aaa
!
username BRANCH password abc
ip subnet-zero
isdn switch-type primary-net5
!
controller E1 4/0/0
description ###ISDN PRI line###
pri-group timeslots 1-31
!
interface Loopback0
description ###ISDN BACKUP IP ADDRESS###
ip address 202.168.9.1 255.255.255.255
!
interface FastEthernet1/1/0
description ###CORPORATE LAN - HQ###
ip address 10.10.10.1 255.255.255.0
!
interface Serial0/0
description ###FRAME RELAY###
encapsulation frame-relay
frame-relay lmi-type cisco
!
interface Serial0/0.1 point-to-point
description ###WAN CONNECTION TO BRANCH###
ip address 202.168.10.1 255.255.255.252
frame-relay interface-dlci 100
!
interface Serial4/0/0:15
ip unnumbered Loopback0
encapsulation ppp
dialer idle-timeout 2147483
dialer map ip 202.168.9.2 name BRANCH broadcast
dialer load-threshold 1 outbound ( extra command for ISDN bonding )
dialer-group 1
isdn switch-type primary-net5
ppp authentication chap
ppp multilink ( extra command for ISDN bonding )
!
router eigrp 1
network 10.0.0.0
network 202.168.9.0
no auto-summary
!
no ip classless
ip route 11.11.11.0 255.255.255.0 202.168.10.2
ip route 11.11.11.0 255.255.255.0 202.168.9.2 200
ip route 202.168.9.2 255.255.255.255 Serial4/0/0:15
!
dialer-list 1 protocol ip permit
!
end
Router BRANCH
!
version 11.2
!
hostname BRANCH
!
enable secret aaa
enable password cisco
!
username HQ password abc
ip subnet-zero
isdn switch-type basic-net3
!
interface Loopback0
ip address 202.168.9.2 255.255.255.255
!
interface Ethernet0/0
ip address 11.11.11.1 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
frame-relay lmi-type cisco
!
interface Serial0/0.1 point-to-point
description ###WAN CONNECTION TO HQ###
backup delay 6 300
backup interface Dialer0
ip address 202.168.10.2 255.255.255.252
frame-relay interface-dlci 100
!
interface BRI1/0
encapsulation ppp
dialer pool-member 1
ppp authentication chap
ppp multilink ( extra command for ISDN bonding )
!
interface BRI1/1
encapsulation ppp
dialer pool-member 1
ppp authentication chap
ppp multilink ( extra command for ISDN bonding )
!
interface Dialer0
description ###ISDN BACKUP TO HQ###
ip unnumbered Loopback0
encapsulation ppp
dialer remote-name HQ
dialer idle-timeout 2147483
dialer string 78823730
dialer load-threshold 1 ( extra command for ISDN bonding )
dialer pool 1
dialer-group 1
ppp multilink ( extra command for ISDN bonding )
!
router eigrp 1
network 11.0.0.0
network 202.168.9.0
network 202.168.10.0
!
ip classless
ip route 10.10.10.0 255.255.255.0 202.168.10.1
ip route 10.10.10.0 255.255.255.0 202.168.9.1 200
ip route 202.168.9.1 255.255.255.255 Dialer0
dialer-list 1 protocol ip permit
!
WAN - ISDN bonding between CE and ISDN PE in IPVPN network
ISDN PE Configuration
!
isdn switch-type primary-net5
!
interface Loopback51
ip vrf forwarding V222:TEST
ip address 202.178.10.1 255.255.255.255
!
interface Virtual-Template2
no peer default ip address
ppp authentication chap callin
ppp multilink
!
address-family ipv4 vrf V222:TEST
redistribute connected
redistribute static
no auto-summary
no synchronization
exit-address-family
!
CE Configuration
!
ip subnet-zero
!
isdn switch-type primary-net5
!
controller E1 6/5
description ***1st PRI line***
pri-group timeslots 1-30
!
controller E1 6/6
description ***2nd PRI line***
pri-group timeslots 1-30
!
controller E1 6/7
description ***3rd PRI line***
pri-group timeslots 1-30
!
interface Serial6/5:15
encapsulation ppp
dialer pool-member 1
isdn switch-type primary-net5
ppp multilink
!
interface Serial6/6:15
encapsulation ppp
dialer pool-member 1
isdn switch-type primary-net5
ppp multilink
!
interface Serial6/7:15
encapsulation ppp
dialer pool-member 1
isdn switch-type primary-net5
ppp multilink
!
interface Dialer2
ip address negotiated
encapsulation ppp
dialer pool 1
dialer idle-timeout 600
dialer string 22460200 (ISDN number at ISDN PE)
dialer load-threshold 1 outbound
dialer-group 1
ppp chap hostname jasrine@aaa.com
ppp chap password abc
ppp multilink links minimum 90 mandatory
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer2 230
!
dialer-list 1 protocol ip permit
!
End
WAN - MLPPP between CE and PE in IPVPN network
PE configuration
!
interface Multilink1
description ***leased-line1 & leased-line2 & leased-line3***
ip vrf forwarding V222:TEST
ip address 202.168.10.1 255.255.255.252
ppp multilink
ppp multilink links minimum 3
ppp multilink load-threshold 1 outbound
ppp multilink group 1
!
!
interface Serial8/0/0.1/1/3/1:0
description ***leased-line 1***
encapsulation ppp
ppp multilink
ppp multilink group 1
!
interface Serial8/0/1.1/1/7/1:0
description ***leased-line 2***
encapsulation ppp
ppp multilink
ppp multilink group 1
!
interface Serial8/0/1.1/1/6/3:0
description ***leased-line 3***
encapsulation ppp
ppp multilink
ppp multilink group 1
!
address-family ipv4 vrf V222:TEST
redistribute connected
redistribute static
no auto-summary
no synchronization
exit-address-family
!
CE Configuration
!
!
controller E1 6/0
channel-group 0 timeslots 1-30
description ##leased-line1##
!
controller E1 6/1
channel-group 0 timeslots 1-30
description ##leased-line2##
!
controller E1 6/2
channel-group 0 timeslots 1-30
description ##leased-line3##
!
interface Multilink1
ip address 202.178.10.2 255.255.255.252
ppp multilink
ppp multilink links minimum 3 mandatory
multilink load-threshold 1 outbound
multilink-group 1
!
interface Serial6/0:0
description ***Leased-line1***
encapsulation ppp
ppp multilink
multilink-group 1
!
interface Serial6/1:0
description ***Leased-line2***
encapsulation ppp
ppp multilink
multilink-group 1
!
interface Serial6/2:0
description ***Leased-line3***
encapsulation ppp
ppp multilink
multilink-group 1
!
ip classless
!
WAN - CE connection to IPVPN via ISDN
!
ip subnet-zero
isdn switch-type basic-net3 ( for BRI use basic-net3; for PRI use primary-net5 )
!
hostname jasrine
!
enable secret abc
!
interface FastEthernet0/1
description ### Connection to customer LAN ###
ip address 10.10.10.1 255.255.255.0
!
interface Serial1/0
description ### Connection to IPVPN PE ###
ip address 202.168.10.1 255.255.255.252
backup interface Dialer2
backup delay 5 300 ( ISDN will kick up 5 seconds after detect
! ( primary link failure, and ISDN will wait for
! ( 300 seconds to be in standby
! ( mode once primary link is ok
!
interface BRI0
no ip address
encapsulation ppp
dialer pool-member 1
isdn switch-type basic-net3
!
interface Dialer2
ip address negotiated
encapsulation ppp
ppp multilink minimum
dialer pool 1
dialer idle-timeout 600 (ISDN idle time out for 600 seconds
dialer string <1st> (Primary ISDN PE number
dialer string <2nd> (Backup ISDN PE number
dialer-group 1
ppp chap hostname jasrine@bbb.com
ppp chap password abc
!
dialer-list 1 protocol ip permit ( Any IP packets will kick the ISDN
! ( up, once the primary line down
!
ip classless
ip route 0.0.0.0 0.0.0.0 202.168.10.2
ip route 0.0.0.0 0.0.0.0 dialer 2 200
!
WAN - CE to IPVPN network
!
ip subnet-zero
!
hostname jasrine
!
enable secret abc
!
interface FastEthernet0/1
description ### Connection to customer LAN ###
ip address 10.10.10.1 255.255.255.0
!
interface Serial1/0
description ### Connection to IPVPN PE ###
ip address 202.168.10.1 255.255.255.252
encapsulation ppp (or encapsulation hdlc)
!
!
ip classless
ip route 0.0.0.0 0.0.0.0 202.178.10.2
!
End
WAN - Frame Relay connection
...
interface Serial0/0
encapsulation frame-relay
frame-relay lmi-type ansi
!
interface Serial0/0.1 point-to-point
description ***Connection to Frame Relay switch***
ip address 58.139.10.38 255.255.255.252
frame-relay interface-dlci 100 !
ADSL backup
disp curr
#
sysname Quidway
#
dialer-rule 1 ip permit
#
radius scheme system
#
domain system
#
interface Aux0
async mode flow
#
interface Dialer1
link-protocol ppp
ppp pap local-user backup1@dsl password simple dsltest
mtu 1450
ip address ppp-negotiate
dialer user backup1
dialer-group 1
dialer bundle 1
#
interface Ethernet0/0
ip address 172.16.10.1 255.255.255.0
#
interface Serial0/0
clock DTECLK1
link-protocol ppp
ip address 58.139.38.58 255.255.255.252
#
interface Atm1/1
#
interface Atm1/1.1 p2p
pvc 0/40
map bridge Virtual-Ethernet0
#
interface Virtual-Ethernet0
pppoe-client dial-bundle-number 1
#
interface NULL0
#
acl number 3001
rule 0 permit ip source 172.16.10.0 0.0.0.255
#
ip route-static 0.0.0.0 0.0.0.0 Serial 0/0 preference 40
ip route-static 0.0.0.0 0.0.0.0 Dialer 1 preference 60
#
return
WAN - ISDN bonding up to 4 PRIs in IPVPN network
#
sysname ISDN-MLPPP
#
dialer-rule 1 ip permit
#
radius scheme system
#
local-user admin
password abc
service-type telnet terminal
level 3
service-type ftp
local-user abc
password simple abc
service-type ppp
#
controller E1 1/0/0
pri-set timeslot-list 1-30
#
controller E1 1/0/1
pri-set timeslot-list 1-30
#
controller E1 1/0/2
pri-set timeslot-list 1-30
#
controller E1 1/0/3
pri-set timeslot-list 1-30
#
controller E1 2/0/0
pri-set timeslot-list 1-30
#
controller E1 2/0/1
pri-set timeslot-list 1-30
#
controller E1 2/0/2
pri-set timeslot-list 1-30
#
controller E1 2/0/3
pri-set timeslot-list 1-30
#
interface Dialer1
link-protocol ppp
ppp chap user abc@abc.com
ppp chap password simple abc
ppp mp max-bind 128
ppp mp min-bind 120
ppp mp
ip address ppp-negotiate
dialer user abc
dialer-group 1
dialer bundle 1
dialer timer idle 600
dialer threshold 1 out
dialer number 123456789
#
interface Serial1/0/0:15
link-protocol ppp
ppp mp
dialer bundle-member 1
#
interface Serial1/0/1:15
link-protocol ppp
ppp mp
dialer bundle-member 1
#
interface Serial1/0/2:15
link-protocol ppp
ppp mp
dialer bundle-member 1
#
interface Serial1/0/3:15
link-protocol ppp
ppp mp
dialer bundle-member 1
#
interface Serial2/0/0:15
link-protocol ppp
ppp mp
dialer bundle-member 1
#
interface Serial2/0/1:15
link-protocol ppp
ppp mp
dialer bundle-member 1
#
interface Serial2/0/2:15
link-protocol ppp
ppp mp
dialer bundle-member 1
#
interface Serial2/0/3:15
link-protocol ppp
ppp mp
dialer bundle-member 1
#
ip route-static 0.0.0.0 0.0.0.0 Dialer 1 preference 65
#
user-interface con 0
user-interface aux 0
user-interface vty 0 4
user privilege level 3
set authentication password cipher abc
#
Huawei simple router configuration
n mode access privileges
Conference into the overall allocation model
In the allocation of molecule into the serial port 0
Ip ip address and mask add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx added telecommunications distribution
Enca hdlc/ppp tied link protocol hdlc or ppp
Ip unn e0
Exit back to the overall distribution pattern
E0 entered in the distribution of Ethernet Adapter
Ip ip address and mask add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx added telecommunications distribution
Exit back to the overall distribution pattern
Add ip route 0.0.0.0 0.0.0.0's routing table 0
Ena password password
Write
Exit
Most of these applications in accordance with China Telecom ddn green
Ordinary user mode
Enable users to model privileges
Exit from distribution
Help system to help brief
Switching language instruction mode
Inspection of ping and network servers connecting it up to the mainframe
Show Information Display System Operation
Telnet remote login function
What path to the destination after tracert tracking device
Privileged user mode
#?
Clear statistical information removed
Clock management system clock
Configure access to the overall distribution pattern
Debug debugging Opening Switch
Disable return to the ordinary user mode
Download new versions of software and configuration file download
Erase the erasure allocation FLASH
Switching from overtime exec-timeout opened EXEC
Exit from distribution
First-config initial configuration installed or removed signs
Help system to help brief
Switching language instruction mode
Open the screen monitor users switching output debugging information
No closed debugging Switch
Inspection of ping and network servers connecting it up to the mainframe
Reboot router reopening
Path setup configuration parameters
Show Information Display System Operation
Telnet remote login function
What path to the destination after tracert tracking device
Unmonitor closed user information screen debugging output switch
Write to Flash will keep the current configuration parameters were MEM
Overall allocation model
Aaa-enable enable the allocation of AAA (authentication, authorization and accounting)
Access-list standard configuration visit Table
Arp ARP installed passive population
Chat-script generation modems used in the implementation of a script
Custom-list create customized list Queue
Dialer-list create dialer-list
Dram-wait installed DRAM wait state
Enable password changes ENABLE
Exit from the overall distribution pattern
Firewall configuration firewall state
Flow-interval time interval set up traffic control
Frame-relay Frame Relay overall configuration command set
Ftp-server FTP Server
Help system to help brief order
Add the mainframe host name and IP address its
Hostname host name changes
Ifquelen change adapter queue length
Interface adapter configuration options
Ip ordered subset of the overall configuration of IP
Ipx ordered subset of the overall configuration of IPX
Loghost installed mainframe log IP addresses
Logic-channel distribution channel logic
Login started EXEC download certification
Modem-timeout installed modems overtime hours
Multilink multilink configuration of the user Adapter
Multilink-user multilink configuration of the user Adapter
Natserver installed FTP, TELNET, Web services IP addresses
No closure of certain parameters Switch
Priority-list establish priority queue list
Routing start processing router
Settr set up time frame
Snmp-server SNMP parameter changes
Tcp TCP parameters of the overall allocation
Regional start-up or closing time timerange
PPP certification system for the user to add customers
Vpdn installed VPDN
VPDN group set up vpdn-group
A layer x25 X.25
Huawei simple router configuration Creating and ios not feel much like? : D |
Huawei simple router configuration No wonder CISCO and his defense?. . |
Huawei simple router configuration
Boss, your command line obsolete! Huawei's equipment orders leadership and the few links!
Basic QOS policy for Huawei router
Hi experts
I know sod-all about VOIP, so I'm hoping you can help, here. I have just had one Avaya IPOffice 406v2 system installed in our main office, and another in our branch office, which is at the end of a dedicated kilostream link. This link carries data between our networked workstations and servers at both sites (all are on a single domain and subnet). The link is serviced by 2 Huawei Quidway AR28-09 routers (one at each end) acting as a bridge.
I've allocated the 2 ipOffice boxes ip addresses within the network subnet, and they talk across the link just fine. However, I'm aware that I should be trying to control the voice traffic with a QOS policy, and I believe my routers will support it, but I don't know how to structure the policy, and therefore what commands to implement. I am currently talking to the routers via their CON port using hyperterminal, and the command set from the Huawei manuals which I managed to begborrowsteal for them.
I will upload the manual for the QOS command set for the routers to ee-stuff, and I can provide output from any commands, eg
[Display Current-configuration]
Now create configuration...
Current configuration
!
version 1.74
firewall enable
aaa-enable
aaa accounting-scheme optional
bridge enable
bridge 1 stp ieee
!
interface Aux0
async mode flow
link-protocol ppp
!
bridge-set 1
!
interface Serial0
clock DTECLK1
link-protocol ppp
bridge-set 1
!
return
[Display Interfaces]
Aux0 current state:up, line protocol current state:up (spoofing)
The Maximum Transmit Unit is 1500
physical layer is asynchronous, baudrate is 9600 bps
Link-protocol is PPP
LCP initial, IPCP initial, IPXCP initial, CCP initial, BRIDGECP initial
Input queue : (size/max/drops) 0/50/0
FIFO queueing: FIFO
(Outbound queue:Size/Length/Discards
FIFO: 0/75/0
Last 5 minutes input rate 0.00 bytes/sec, 0.00 packets/sec
Last 5 minutes output rate 0.00 bytes/sec, 0.00 packets/sec
Input: 0 packets, 0 bytes
0 broadcasts, 0 multicasts
0 errors, 0 runts, 0 giants
0 CRC,0 frame errors, 0 overrunners
0 aborted sequences 0 no buffers
0 packets with dribble condition detected
Output:1 packets, 27 bytes
0 broadcasts, 0 multicasts
0 errors, 0 underruns, 0 collisions
0 packets had been deferred
Ethernet0 current state:up, line protocol current state:up
Description: Ethernet interface, Ethernet0 Interface
The Maximum Transmit Unit is 1500
IP Sending Frames' Format is Ethernet_II,Hardware address is 00-e0-fc-2a-86-0a
Media type is twisted pair, loopback is not set, promiscuous mode set
Full-duplex mode, 100Mbps-speed mode, link type is autonegotiation
Input queue : (size/max/drops) 0/200/0
FIFO queueing: FIFO
(Outbound queue:Size/Length/Discards
FIFO: 0/75/0
Last 5 minutes input rate 1090.44 bytes/sec, 3.15 packets/sec
Last 5 minutes output rate 583.94 bytes/sec, 3.13 packets/sec
Input: 14822890 packets, 2188455972 bytes
515594 broadcasts, 14330 multicasts
0 errors, 0 runts, 0 giants
0 CRC,0 frame errors, 0 overrunners
0 aborted sequences 0 no buffers
0 packets with dribble condition detected
Output:14505838 packets, 2237588944 bytes
0 broadcasts, 0 multicasts
0 errors, 0 underruns, 0 collisions
0 packets had been deferred
Serial0 current state:up, line protocol current state:up
The Maximum Transmit Unit is 1500
physical layer is synchronous
interface is DTE, clock is DTECLK1, cable type is V35
Link-protocol is PPP
LCP opened, IPCP initial, IPXCP initial, CCP initial, BRIDGECP opened
Input queue : (size/max/drops) 0/50/0
FIFO queueing: FIFO
(Outbound queue:Size/Length/Discards
FIFO: 0/75/47
Last 5 minutes input rate 576.16 bytes/sec, 2.83 packets/sec
Last 5 minutes output rate 1131.27 bytes/sec, 3.85 packets/sec
Input: 13520295 packets, 2237239417 bytes
0 broadcasts, 0 multicasts
31 errors, 0 runts, 0 giants
17 CRC,7 frame errors, 7 overrunners
0 aborted sequences 0 no buffers
0 packets with dribble condition detected
Output:17122363 packets, 2349279100 bytes
0 broadcasts, 0 multicasts
0 errors, 0 underruns, 0 collisions
0 packets had been deferred
DCD=UP DTR=UP DSR=UP RTS=UP CTS=UP
TACACS+ Server Configuration for Huawei Routers,Firewalls & Switches
Implementing TACACS on networking euipments turnsout to be very efficient interms of network users management.
Let me share some of the tips for configuring TACACS on Huawei equipments….but before that let me explain few concepts…for those not familiar…
TACACS+ (Terminal Access Controller Access-Control System Plus) is a protocol which provides access control for routers, network access servers and other networked computing devices via one or more centralized servers. TACACS+ provides separate authentication, authorization and accounting services.
HWTACACS is the enhancement of TACACS that is an access control protocol defined in RFC 1492. Similar to RADIUS, HWTACACS implements AAA of multiple users by communicating with the HWTACACS server in the Server/Client model. HWTACACS is used to perform AAA on access users over PPP or Virtual Private Dial Network (VPDN) and login users.
Now..lets take a closer look into the configuration commands…
——– Creating a tacacs template which contains the Server information.—————-
#
hwtacacs-server template ht
hwtacacs-server authentication1000
hwtacacs-server authorization1001
hwtacacs-server accounting1002
hwtacacs-server shared-key
#———- Creating an AAA authorization,authentication & accounting scheme —————
#
aaaauthentication-scheme default
authentication-scheme l-h
authentication-mode local hwtacacs
authentication-scheme hwtacacs
authentication-mode hwtacacs
#
authorization-scheme default
authorization-scheme hwtacacs
authorization-mode hwtacacs
#
accounting-scheme default
accounting-scheme hwtacacs
accounting-mode hwtacacs
accounting realtime 3
#
domain default
domain domainname
authentication-scheme l-h
authorization-scheme hwtacacs
accounting-scheme hwtacacs
hwtacacs-server ht
#
Now….Lets look at the Server Configuration….(OS : CentOS Linux)
/etc/tac_plus.conf
# tacacs configuration file
# Pierre-Yves Maunier - 20060713
# /etc/tac_plus.conf# set the key
key = keyaccounting file = /var/log/tac_plus.acct
# users accounts
user = useradmin {
default service = permit
login = cleartext “normal”
enable = cleartext “enable”}
After the config file is saved… run the following command..
Note: Feel free to comment if you got any doubts..[root@centos]# tac_plus -C /etc/tac_plus.conf
ACL configuration on Huawei Router NE40E
Lately..I was been assigned to do some security configuration for our secure servers & networking equipments. Our technology is mostly from Huawei.. So all our Routers,Firewalls,switches and other networking equipments are from Huawei. Basically the concept is same as that of Cisco & Nortel, but yes the command varies.
Performing the configuration, to my surprise the command which is used to configure ACL in other Huawei routers didn’t work in our newly bought NE40E Router. It was because since the router was bought recently, it had updated Version-V300R002_11(OS for Huawei router).
I figured out new way to do it ….so thought it would be useful for people if I share it on my blog.
Routers usually need to process the data packets with certain features.
For example, applying Access Control List (ACL) in the firewalls can either permit some data packets to pass the firewalls or directly discard the data packets. Applying ACLs in IPSec can encapsulate the data packets that match the ACL and forward those that do not match the ACL.
Routers select data packets by using a serial of rules defined through ACL.
An ACL includes a group of orderly rules that consist of rule { deny | permit } statements. The rules are described based on the source address, the destination address, and the port number of data packets. An ACL classifies data packets according to these rules.
Lets go with the syntax :
# create an acl
acl number rule 1 permit source destination rule 5 deny #Now apply the acl to the interface
interface acl
**** That was the way in earlier Huawei Routers……the below explains the new way.****
Steps,
1. Create a traffic classifier
2. Create a traffic behaviour
3. Create a traffic policy
4. Define the traffic policy with classifier & behaviour
5. Apply the traffic policy to the router interface
Well…in router series after Huawei Router NE40E the acl application is a part of policy based routing.
Changing the IP Address on a Cisco Router With an IP Conflict
If you wish to bring up a Cisco router that has an IP address that conflicts with existing hosts on your network, there are a variety of ways to change it. We just happened to have a crossover network cable sitting on our work bench, and a GNU/Linux host on the LAN with an extra unused NIC in it. We didn't happen to have a convenient console cable, and thought, hey, why not? There are some examples of various GNU/Linux networking tweaks, as well as the mundane changing the IP address in IOS, so some part of this might help you.
The first step is to bind an address that doesn't conflict with the Cisco to the extra interface:
[root@sv-51 sysconfig]# cd network-scripts |
Add a route for both the existing conflicting address and the new address:
[root@sv-51 network-scripts]# route add 10.50.100.202 gw 10.50.100.201 |
Now, let's change the address on the Cisco Router:
[root@sv-51 network-scripts]# telnet 10.50.100.200 |
The connection will lock up here, just reconnect to copy the running config to start and reload the router:
[root@sv-51 root]# telnet 10.50.100.202 |
Let's remove the Cisco from the extra NIC, plug it in to the LAN, remove the extra routes, and try to telnet in to the Cisco:
[root@sv-51 root]# /etc/init.d/network restart |
Looks good.