[ LUGOS ] Router

Davor Guttierrez lowcrash na amis.net
Sre Mar 7 15:12:04 CET 2001


This is a multi-part message in MIME format.

------=_NextPart_000_0004_01C0A718.F7DA33A0
Content-Type: text/plain;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

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=3DNEKAJ
set user=3Dmanager pass=3DXXXXX
set q931=3D0 profile=3DETB num1=3D728
add isdn call=3Dsiol num=3D0088032320 prec=3DOUT
set isdn call=3Dsiol outsub=3DLOCAL
set isdn call=3Dsiol clilist=3D0
add isdn call=3Dtisina num=3D723 searchsub=3Dlocal outsub=3Dlocal =
inany=3Dyes
enable ip
enable ip remote
enable ip nat
enable gre
create ppp=3D0 over=3Disdn-siol restart=3D1 lqr=3Doff
set ppp=3D0 iprequest=3Don
set ppp=3D0 username=3D"XXXXXXX" password=3D"XXXXXX"
create ppp=3D1 over=3Disdn-tisina
add ip int=3Deth0 ip=3D192.168.1.1 mask=3D255.255.255.0
add ip int=3Dppp0 ip=3D0.0.0.0 mask=3D0.0.0.0
set ip nameserver=3D193.189.160.11
add ip int=3Dppp1 ip=3D192.168.100.1
add ip route=3D0.0.0.0 mask=3D0.0.0.0 int=3Dppp0 next=3D0.0.0.0
add ip route=3D192.168.2.0 mask=3D255.255.255.0 int=3Dppp1 =
next=3D192.168.100.2
add ip nat ip=3D192.168.1.0 mask=3D255.255.255.0 gblinterface=3Dppp0
add gre=3D1 source=3D192.168.1.0 smask=3D255.255.255.0 =
dest=3D192.168.2.0 dmask=3D255.255.255.0 target=3D192.168.100.2
set ip int=3Deth0 gre=3D1
ENABLE DHCP
CREATE DHCP POLICY=3DBASE LEASE=3D7200
ADD DHCP POLICY=3DBASE SUBNET=3D255.255.255.0
ADD DHCP POLICY=3DBASE ROUTER=3D192.168.1.1
ADD DHCP POLICY=3DBASE DNSSERVER=3D193.189.160.11,193.189.160.12
CREATE DHCP RANGE=3DOFFICE POLICY=3DBASE IP=3D192.168.1.10 NUMBER=3D32

------------:

Na drugem routerju pa je:

----------:

set sys name=3DNEKAJ
set user=3Dmanager pass=3DXXXXX
set q931=3D0 profile=3DETB num1=3D728
add isdn call=3Dsiol num=3D0088032320 prec=3DOUT
set isdn call=3Dsiol outsub=3DLOCAL
set isdn call=3Dsiol clilist=3D0
add isdn call=3Dtisina num=3D723 searchsub=3Dlocal outsub=3Dlocal =
inany=3Dyes
enable ip
enable ip remote
enable ip nat
enable gre
create ppp=3D0 over=3Disdn-siol restart=3D1 lqr=3Doff
set ppp=3D0 iprequest=3Don
set ppp=3D0 username=3D"XXXXXXX" password=3D"XXXXXX"
create ppp=3D1 over=3Disdn-tisina
add ip int=3Deth0 ip=3D192.168.2.1 mask=3D255.255.255.0
add ip int=3Dppp0 ip=3D0.0.0.0 mask=3D0.0.0.0
set ip nameserver=3D193.189.160.11
add ip int=3Dppp1 ip=3D192.168.100.1
add ip route=3D0.0.0.0 mask=3D0.0.0.0 int=3Dppp0 next=3D0.0.0.0
add ip route=3D192.168.1.0 mask=3D255.255.255.0 int=3Dppp1 =
next=3D192.168.100.1
add ip nat ip=3D192.168.2.0 mask=3D255.255.255.0 gblinterface=3Dppp0
add gre=3D1 source=3D192.168.1.0 smask=3D255.255.255.0 =
dest=3D192.168.2.0 dmask=3D255.255.255.0 target=3D192.168.100.1
set ip int=3Deth0 gre=3D1
ENABLE DHCP
CREATE DHCP POLICY=3DBASE LEASE=3D7200
ADD DHCP POLICY=3DBASE SUBNET=3D255.255.255.0
ADD DHCP POLICY=3DBASE ROUTER=3D192.168.2.1
ADD DHCP POLICY=3DBASE DNSSERVER=3D193.189.160.11,193.189.160.12
CREATE DHCP RANGE=3DOFFICE POLICY=3DBASE IP=3D192.168.2.10 NUMBER=3D32

----------:


LP,

Davor





------=_NextPart_000_0004_01C0A718.F7DA33A0
Content-Type: text/html;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Imam dva routerja Alied Telesyn AR300. =
Na dveh=20
razlicnih lokacijah. Vsaka od teh dveh lokacij gre preko routerja na =
internet.=20
Vsak router dodeljuje IPje masinam preko DHCPja. Ta dva routerja sta =
tudi=20
povezana med sabo. Za dostop do interneta se uporablja NAT za dostop do =
firme pa=20
GRE. Problem pa je v tem, da GRE ne preusmerja pakete za drugo=20
firmo.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Je kdo delal kdaj s takima routerjema? =
Spodaj sta=20
se skripti za obe lokaciji.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>----------:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>set sys name=3DNEKAJ<BR>set =
user=3Dmanager=20
pass=3DXXXXX<BR>set q931=3D0 profile=3DETB num1=3D728<BR>add isdn =
call=3Dsiol=20
num=3D0088032320 prec=3DOUT<BR>set isdn call=3Dsiol =
outsub=3DLOCAL<BR>set isdn call=3Dsiol=20
clilist=3D0<BR>add isdn call=3Dtisina num=3D723 searchsub=3Dlocal =
outsub=3Dlocal=20
inany=3Dyes<BR>enable ip<BR>enable ip remote<BR>enable ip nat<BR>enable=20
gre<BR>create ppp=3D0 over=3Disdn-siol restart=3D1 lqr=3Doff<BR>set =
ppp=3D0=20
iprequest=3Don<BR>set ppp=3D0 username=3D"XXXXXXX" =
password=3D"XXXXXX"<BR>create ppp=3D1=20
over=3Disdn-tisina<BR>add ip int=3Deth0 ip=3D192.168.1.1 =
mask=3D255.255.255.0<BR>add ip=20
int=3Dppp0 ip=3D0.0.0.0 mask=3D0.0.0.0<BR>set ip =
nameserver=3D193.189.160.11<BR>add ip=20
int=3Dppp1 ip=3D192.168.100.1<BR>add ip route=3D0.0.0.0 mask=3D0.0.0.0 =
int=3Dppp0=20
next=3D0.0.0.0<BR>add ip route=3D192.168.2.0 mask=3D255.255.255.0 =
int=3Dppp1=20
next=3D192.168.100.2<BR>add ip nat ip=3D192.168.1.0 mask=3D255.255.255.0 =

gblinterface=3Dppp0<BR>add gre=3D1 source=3D192.168.1.0 =
smask=3D255.255.255.0=20
dest=3D192.168.2.0 dmask=3D255.255.255.0 target=3D192.168.100.2<BR>set =
ip int=3Deth0=20
gre=3D1<BR>ENABLE DHCP<BR>CREATE DHCP POLICY=3DBASE LEASE=3D7200<BR>ADD =
DHCP=20
POLICY=3DBASE SUBNET=3D255.255.255.0<BR>ADD DHCP POLICY=3DBASE=20
ROUTER=3D192.168.1.1<BR>ADD DHCP POLICY=3DBASE=20
DNSSERVER=3D193.189.160.11,193.189.160.12<BR>CREATE DHCP RANGE=3DOFFICE =
POLICY=3DBASE=20
IP=3D192.168.1.10 NUMBER=3D32</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>------------:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Na drugem routerju pa je:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>----------:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>set sys name=3DNEKAJ<BR>set =
user=3Dmanager=20
pass=3DXXXXX<BR>set q931=3D0 profile=3DETB num1=3D728<BR>add isdn =
call=3Dsiol=20
num=3D0088032320 prec=3DOUT<BR>set isdn call=3Dsiol =
outsub=3DLOCAL<BR>set isdn call=3Dsiol=20
clilist=3D0<BR>add isdn call=3Dtisina num=3D723 searchsub=3Dlocal =
outsub=3Dlocal=20
inany=3Dyes<BR>enable ip<BR>enable ip remote<BR>enable ip nat<BR>enable=20
gre<BR>create ppp=3D0 over=3Disdn-siol restart=3D1 lqr=3Doff<BR>set =
ppp=3D0=20
iprequest=3Don<BR>set ppp=3D0 username=3D"XXXXXXX" =
password=3D"XXXXXX"<BR>create ppp=3D1=20
over=3Disdn-tisina<BR>add ip int=3Deth0 ip=3D192.168.2.1 =
mask=3D255.255.255.0<BR>add ip=20
int=3Dppp0 ip=3D0.0.0.0 mask=3D0.0.0.0<BR>set ip =
nameserver=3D193.189.160.11<BR>add ip=20
int=3Dppp1 ip=3D192.168.100.1<BR>add ip route=3D0.0.0.0 mask=3D0.0.0.0 =
int=3Dppp0=20
next=3D0.0.0.0<BR>add ip route=3D192.168.1.0 mask=3D255.255.255.0 =
int=3Dppp1=20
next=3D192.168.100.1<BR>add ip nat ip=3D192.168.2.0 mask=3D255.255.255.0 =

gblinterface=3Dppp0<BR>add gre=3D1 source=3D192.168.1.0 =
smask=3D255.255.255.0=20
dest=3D192.168.2.0 dmask=3D255.255.255.0 target=3D192.168.100.1<BR>set =
ip int=3Deth0=20
gre=3D1<BR>ENABLE DHCP<BR>CREATE DHCP POLICY=3DBASE LEASE=3D7200<BR>ADD =
DHCP=20
POLICY=3DBASE SUBNET=3D255.255.255.0<BR>ADD DHCP POLICY=3DBASE=20
ROUTER=3D192.168.2.1<BR>ADD DHCP POLICY=3DBASE=20
DNSSERVER=3D193.189.160.11,193.189.160.12<BR>CREATE DHCP RANGE=3DOFFICE =
POLICY=3DBASE=20
IP=3D192.168.2.10 NUMBER=3D32</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>----------:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>LP,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Davor</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0004_01C0A718.F7DA33A0--





Dodatne informacije o seznamu Starilist