[ LUGOS ] Router
Davor Guttierrez
lowcrash at amis.net
Wed Mar 7 15:12:04 CET 2001
Hi
Imam dva routerja Alied Telesyn AR300. Na dveh razlicnih lokacijah. Vsaka od teh dveh lokacij gre preko routerja na internet. Vsak router dodeljuje IPje masinam preko DHCPja. Ta dva routerja sta tudi povezana med sabo. Za dostop do interneta se uporablja NAT za dostop do firme pa GRE. Problem pa je v tem, da GRE ne preusmerja pakete za drugo firmo.
Je kdo delal kdaj s takima routerjema? Spodaj sta se skripti za obe lokaciji.
----------:
set sys name=NEKAJ
set user=manager pass=XXXXX
set q931=0 profile=ETB num1=728
add isdn call=siol num=0088032320 prec=OUT
set isdn call=siol outsub=LOCAL
set isdn call=siol clilist=0
add isdn call=tisina num=723 searchsub=local outsub=local inany=yes
enable ip
enable ip remote
enable ip nat
enable gre
create ppp=0 over=isdn-siol restart=1 lqr=off
set ppp=0 iprequest=on
set ppp=0 username="XXXXXXX" password="XXXXXX"
create ppp=1 over=isdn-tisina
add ip int=eth0 ip=192.168.1.1 mask=255.255.255.0
add ip int=ppp0 ip=0.0.0.0 mask=0.0.0.0
set ip nameserver=193.189.160.11
add ip int=ppp1 ip=192.168.100.1
add ip route=0.0.0.0 mask=0.0.0.0 int=ppp0 next=0.0.0.0
add ip route=192.168.2.0 mask=255.255.255.0 int=ppp1 next=192.168.100.2
add ip nat ip=192.168.1.0 mask=255.255.255.0 gblinterface=ppp0
add gre=1 source=192.168.1.0 smask=255.255.255.0 dest=192.168.2.0 dmask=255.255.255.0 target=192.168.100.2
set ip int=eth0 gre=1
ENABLE DHCP
CREATE DHCP POLICY=BASE LEASE=7200
ADD DHCP POLICY=BASE SUBNET=255.255.255.0
ADD DHCP POLICY=BASE ROUTER=192.168.1.1
ADD DHCP POLICY=BASE DNSSERVER=193.189.160.11,193.189.160.12
CREATE DHCP RANGE=OFFICE POLICY=BASE IP=192.168.1.10 NUMBER=32
------------:
Na drugem routerju pa je:
----------:
set sys name=NEKAJ
set user=manager pass=XXXXX
set q931=0 profile=ETB num1=728
add isdn call=siol num=0088032320 prec=OUT
set isdn call=siol outsub=LOCAL
set isdn call=siol clilist=0
add isdn call=tisina num=723 searchsub=local outsub=local inany=yes
enable ip
enable ip remote
enable ip nat
enable gre
create ppp=0 over=isdn-siol restart=1 lqr=off
set ppp=0 iprequest=on
set ppp=0 username="XXXXXXX" password="XXXXXX"
create ppp=1 over=isdn-tisina
add ip int=eth0 ip=192.168.2.1 mask=255.255.255.0
add ip int=ppp0 ip=0.0.0.0 mask=0.0.0.0
set ip nameserver=193.189.160.11
add ip int=ppp1 ip=192.168.100.1
add ip route=0.0.0.0 mask=0.0.0.0 int=ppp0 next=0.0.0.0
add ip route=192.168.1.0 mask=255.255.255.0 int=ppp1 next=192.168.100.1
add ip nat ip=192.168.2.0 mask=255.255.255.0 gblinterface=ppp0
add gre=1 source=192.168.1.0 smask=255.255.255.0 dest=192.168.2.0 dmask=255.255.255.0 target=192.168.100.1
set ip int=eth0 gre=1
ENABLE DHCP
CREATE DHCP POLICY=BASE LEASE=7200
ADD DHCP POLICY=BASE SUBNET=255.255.255.0
ADD DHCP POLICY=BASE ROUTER=192.168.2.1
ADD DHCP POLICY=BASE DNSSERVER=193.189.160.11,193.189.160.12
CREATE DHCP RANGE=OFFICE POLICY=BASE IP=192.168.2.10 NUMBER=32
----------:
LP,
Davor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://liste2.lugos.si/pipermail/lugos-list/attachments/20010307/3f659ad5/attachment-0001.htm
More information about the lugos-list
mailing list