設定例  > 冗長設定
設定例



2.F100+E30で冗長、メイン回線のみ暗号化  




F100 192.168.138.10
E30 192.168.138.127
代表アドレス 192.168.138.1
L3監視パケット宛先 158.0.0.1
冗長対象パケット宛先 192.168.45.0/24


<コマンド操作>

F100の設定                                   この設定を適用したい方は
!
!
! LAN側IPアドレスを設定します。
!
Router> enable
Enter password: super ←パスワードを入力します。(実際は表示されない)

Router#
Router# configure terminal
Router(config)#
Router(config)# interface lan 1
Router(config-if lan 1)#
Router(config-if lan 1)# ip address 192.168.138.10 255.255.255.0
Router(config-if lan 1)# exit
!
!
! PPPoE1インタフェース設定モードに移行します。
!
Router(config)# interface pppoe 1
Router(config-if pppoe 1)#
!
! 
! PPPoEの各種設定をします。
!
Router(config-if pppoe 1)# pppoe server A-Provider
Router(config-if pppoe 1)# pppoe account user@xxxx.ne.jp secret
Router(config-if pppoe 1)# pppoe type host
Router(config-if pppoe 1)# crypto map1
!
!
! デフォルトルートをPPPoE1に設定します。
!
Router(config)# ip route 0.0.0.0 0.0.0.0 pppoe1
!
!
! 暗号化を使用する設定します。
!
Router(config)# vpn enable
Router(config)# ipsec access-list 1 ipsec ip 192.168.138.0 0.0.0.255 192.168.45.0 0.0.0.255
Router(config)# ipsec access-list 64 bypass ip any any
Router(config)# ipsec transform-set p2p1 esp-des esp-md5-hmac
Router(config)# crypto isakmp policy 1
Router(config-isakmp)# authentication prekey
Router(config-isakmp)# encryption des
Router(config-isakmp)# hash md5
Router(config-isakmp)# keepalive disable
Router(config-isakmp)# key ascii vpn
Router(config-isakmp)# my-identity F100-1
Router(config-isakmp)# negotiation-mode main
Router(config-isakmp)# peer-identity address 158.0.0.1
Router(config-isakmp)# peer-identity host F100-2
Router(config-isakmp)# exit
Router(config)#crypto map map1 1
Router(config-crypto-map)# match address 1
Router(config-crypto-map)# set peer address 158.0.0.1
Router(config-crypto-map)# set transform-set p2p1
Router(config-crypto-map)# exit
!
!
!  ルータグループ化の設定を行ないます。
!
Router(config)# redundancy router-group
Router(config-red-router-group)# router-group enable
Router(config-red-router-group)# preference 2
Router(config-red-router-group)# port 55555
Router(config-red-router-group)# ip address 192.168.138.1
Router(config-red-router-group)# send-interval 6
Router(config-red-router-group)# aging-time 16
Router(config-red-router-group)# wait-time 8
Router(config-red-router-group)# exit
!
!
!  L3監視の設定を行ないます。
!
Router(config)# redundancy pathcheck-list 1
Router(config-red-pathcheck-list 1)# ip address 158.0.0.1
Router(config-red-pathcheck-list 1)# pathcheck-fail 4
Router(config-red-pathcheck-list 1)# pathcheck-interval 40
Router(config-red-pathcheck-list 1)# ping-trial 2
Router(config-red-pathcheck-list 1)# restcheck-interval 40
Router(config-red-pathcheck-list 1)# restcheck-success 3
Router(config-red-pathcheck-list 1)# route ewan 1
Router(config-red-pathcheck-list 1)# source-interface lan 1
Router(config-red-pathcheck-list 1)# exit
!
!
!  冗長対象パケットの設定を行ないます。
!
Router(config)# redundancy pathfilter-list 1
Router(config-red-pathfilter-list 1)# destination 192.168.45.0 255.255.255.0
Router(config-red-pathfilter-list 1)# pathcheck-list 1
Router(config-red-pathfilter-list 1)# 1st ewan 1
Router(config-red-pathfilter-list 1)# 2nd router-group
Router(config-red-pathfilter-list 1)# exit
Router(config)# end
Router# save SIDE-A.cfg
% saving working-config
% finished saving



E30の設定
wan isdn dual
 
hostname add 1 default=e30 password=e30 nameserver=off netbiosserver=off\
 domainname="" defaultgw=off
 
target add name=mucho dial=200* key=nc,mucho speed=64 continuouslimiter=600,on\
 callinglimiter=40,on type=normal cbmode=off dialcheckmask=0 host=default
 
isdn dialcheck=on recvcheck=off sendcheck=off multimode=off limiter=12\
 congestiontimer=1
isdn -1 dial=100* dial2=* retrytimes=8 idletimer=60,60 target=mucho\
 mode=traffic recvidletimer=off globalnumber=allow
 
targetinterface add name=mucho interface=isdn1

ipripstatic add dst=0.0.0.0,0.0.0.0 nextif=isdn1 metric=16 preference=50
 
interface ip lan addr=192.168.138.127,255.255.255.0 broadcast=192.168.138.255
interface ip hsd down
interface ip isdn1 addr=0.0.0.0 remote=0.0.0.0,255.255.255.255
interface ip isdn2 down
interface ip async down
interface ip dp down
 
nat group=1 natp if=isdn1 t1=1440 t2=5 t3=60 t4=1 t5=1 t6=60 t7=1
 
rgrouping on preference=10 udpport=55555 gipaddr=192.168.138.1 dupchktimer=3\
 sendinterval=5 agingtimer=15 recvwaittimer=5
 
pathchk off pingtrial=2
 
pathchktable add pathchkipaddr=192.168.43.2 pathchkinterval=30\
 restchkinterval=30 pathchktimer=120 restchktimer=300 dstipaddr=192.168.45.2
 
pathfiltering add pathchkipaddr=192.168.43.2 addr=192.168.45.5,255.255.255.0



ページトップへ