On 10 Aug 2005 10:53:28 -0700, hakim <(E-Mail Removed)> wrote:
> Hi,
>
> I have rent a server of a provider. That system gets its ip over dhcp.
> Actually I want it statically.
>
> # ifconfig
> eth0 Link encap:Ethernet HWaddr 00:20:ED:2E:A6:3B
> inet addr:117.160.111.9 Bcast:117.160.111.9
> Mask:255.255.255.255
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:434421 errors:0 dropped:0 overruns:0 frame:0
> TX packets:347860 errors:0 dropped:0 overruns:3 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:45579714 (43.4 MiB) TX bytes:52693898 (50.2 MiB)
> Interrupt:11
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
>
> # route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 10.255.255.1 0.0.0.0 255.255.255.255 UH 0 0 0
> eth0
> 0.0.0.0 10.255.255.1 0.0.0.0 UG 0 0 0
> eth0
>
> After I have checked the server with ifconfig and route -n I saw the
> strange network setup.
>
> Netmask is 255.255.255.255 ?
> IP is 117.160.111.9
> Gatway is 10.255.255.1 ???? what's that ????
The /32 netmask is quite common for ppp and pppoe. There is nothing that
says the gateway has to be same network range, as long as there is a host
route to it (which is automatic with ppp, but not with ethernet). In this
case it it likely so they can preserve public IPs for use where necessary
for public routing.
> Any Hints? How can my server find the gateway??? The gateway address is
> the original address. The IP-address is changed at the first number.
> Originally it was two hundred something and I have changed it here to
> 117. But how can my server reach that router from a 100 or two hundred
> network to a 10 network????
You already found the current gateway. But if you are supposed to use
DHCP that or your IP could change any time DHCP lease expires.
> I can't configure the ip statically with that gateway... How I can or
> why I can't use statically but dynamic IP-Addresses???
You should not assign a static IP on a network that uses DHCP without the
approval of the network administrator, otherwise you might cause IP
conflicts, or rejection by your ISP's router.
You certainly could configure a nic with 255.255.255.255 netmask. You
just need to add the -host route to gateway IP before you assign it as
gateway. But you should not unless you get authorization.
|