Subject: Re: Can't configure default gateway
To: Alexandre Almeida <ale.almeida@mail.telepac.pt>
From: Rui Paulo <rpaulo@gmail.com>
List: tech-net
Date: 11/09/2006 10:31:25
On Nov 9, 2006, at 10:31 AM, Alexandre Almeida wrote:
> That I think is the problem, here are configuration parameter's:
>
> $ ifconfig -a
> tlp0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> address: 00:00:f8:04:29:59
> media: Ethernet autoselect (10baseT)
> status: active
> inet 172.20.27.61 netmask 0xffffffc0 broadcast 172.20.27.63
> tlp1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> address: 00:00:f8:09:85:be
> media: Ethernet autoselect (10baseT)
> status: active
> inet 82.155.138.115 netmask 0xff000000 broadcast 82.255.255.255
> lo0: flags=3D8009<UP,LOOPBACK,MULTICAST> mtu 33136
> inet 127.0.0.1 netmask 0xff000000
>
> $ netstat -ranf inet
> Routing tables
>
> Internet:
> Destination Gateway Flags Refs Use Mtu Interface
> 82/8 link#2 UC 0 0 - tlp1
> 82.155.138.115 127.0.0.1 UGHS 0 0 33136 lo0
> 127/8 127.0.0.1 UGRS 0 0 33136 lo0
> 127.0.0.1 127.0.0.1 UH 2 46 33136 lo0
>
> On windows or linux the default is configuesd by DHCP, here the =20
> routing table:
>
> Rotas activas:
> Destino de rede M=E1scara de rede Gateway =20
> Interface M=E9trica
> 0.0.0.0 0.0.0.0 194.65.169.215 =20
> 82.155.154.8 1
> 82.0.0.0 255.0.0.0 82.155.154.8 =20
> 82.155.154.8 20
> 82.155.154.8 255.255.255.255 127.0.0.1 =20
> 127.0.0.1 20
> 82.255.255.255 255.255.255.255 82.155.154.8 =20
> 82.155.154.8 20
> 127.0.0.0 255.0.0.0 127.0.0.1 =20
> 127.0.0.1 1
> 224.0.0.0 240.0.0.0 82.155.154.8 =20
> 82.155.154.8 20
> 255.255.255.255 255.255.255.255 82.155.154.8 =20
> 5 1
> 255.255.255.255 255.255.255.255 82.155.154.8 =20
> 4 1
> 255.255.255.255 255.255.255.255 82.155.154.8 =20
> 82.155.154.8 1
> 255.255.255.255 255.255.255.255 82.155.154.8 =20
> 2 1
> 255.255.255.255 255.255.255.255 82.155.154.8 =20
> 6 1
> Gateway predef.: 194.65.169.215
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20
> =3D=3D=3D=3D=3D
>
> I have tried to had manually to configure with:
>
> route had default 194.65.169.215
> error no route to host
> route add -host 194.65.169.215 -gateway 82.155.138.115 -interface -=20
> llinfo -cloned
> arpresolve: can't allocate llinfo on tlp1 for 194.65.169.215
> arpresolve: can't allocate llinfo on tlp1 for 194.65.169.215
>
> # netstat -ran
> Routing tables
>
> Internet:
> Destination Gateway Flags Refs Use Mtu Interface
> 82/8 link#2 UC 0 0 - tlp1
> 82.155.138.115 127.0.0.1 UGHS 0 0 33136 lo0
> 127/8 127.0.0.1 UGRS 0 0 33136 lo0
> 127.0.0.1 127.0.0.1 UH 2 46 33136 lo0
> 194.65.169.215 82.155.138.115 UHLSc 0 4 - tlp1
To add such route you need something like:
route add -ifa <your_tlp1_address> default 194.65.169.215
--
Rui Paulo