Toon posts:

[kubuntu]ip adres probleem

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb een nieuwe zyxel router aangesloten via een switch op een windows en een linux computer. Deze zijn geconfigureerd via statisch DHCP m.b.v. mac adressen.

Het probleem is nu dat de kubuntu computer een vreemd ip adres neemt waarop NAT niet werkt.
De stand van zaken:

etc/network/interfaces
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
#mapping hotplug
    script grep
    map eth0

# The primary network interface
iface eth0 inet dhcp

auto eth0



$ ifconfig
code:
1
2
3
4
5
6
7
8
9
eth0      Link encap:Ethernet  HWaddr **:**:**:**:**:**
          inet addr:169.254.62.196  Bcast:0.0.0.0  Mask:255.255.0.0
          inet6 addr: fe80::213:d4ff:fe46:c2ca/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:75 errors:0 dropped:0 overruns:0 frame:0
          TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:50908 (49.7 KiB)  TX bytes:8664 (8.4 KiB)
          Interrupt:23 Base address:0xa000



$ sudo ifdown eth0
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Password:
There is already a pid file /var/run/dhclient.eth0.pid with pid 7943
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth0/**:**:**:**:**:**
Sending on   LPF/eth0/**:**:**:**:**:**
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.1.1 port 67



$ sudo ifup eth0
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
There is already a pid file /var/run/dhclient.eth0.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth0/**:**:**:**:**:**
Sending on   LPF/eth0/**:**:**:**:**:**
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPOFFER from 192.168.1.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.0 -- renewal in 110019 seconds.
RTNETLINK answers: Cannot assign requested address



$ route -n
code:
1
2
3
4
5
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0



$ ps aux | grep dhcp
code:
1
2
dhcp      9299  0.0  0.1   2336  1176 ?        Ss   08:37   0:00 dhclient3 -pf /var/run/dhclient.eth0.pid -lf /var/run/dhclient.eth0.leases eth0
mvv       9599  0.0  0.0   2944   624 pts/5    R+   08:47   0:00 grep dhcp


Internet werkt verder wel, maar NAT is onmogelijk en het eth0 adres moet eigenlijk 192.168.1.0 zijn zoals de router verteld.
Iemand met een idee?

[ Voor 6% gewijzigd door Verwijderd op 01-03-2006 10:41 . Reden: [small] -> [code] ]


  • Superboer12
  • Registratie: Februari 2004
  • Laatst online: 03-02 23:08
Heb je in je router het mac adres van je linux bak gekoppeld aan 192.168.1.0?
In dat geval moet je de 0 aan het einde even veranderen naar een ander getal.
.0 e .255 zijn gereserveerde adressen. Kies een getal tussen 1 en 254.

Infinitus est numerus stultorum


Verwijderd

Topicstarter
Klopt, 192.168.1.0, weet ik dat ook weer. :)

Ik heb er nu dit van gemaakt:
gateway 192.168.1.2
linux box 192.168.1.1
moeders doos 192.168.1.3

Helaas heb ik nog hetzelfde resultaat dat de linux box zich op het 169.nummer zet. Opmerkelijk is dat $ route -n nogsteeds denkt dat 192.168.1.0 het adres moet zijn.(exact dezelfde output)

Ik heb voor de zekerheid het netwerk geprobeerd te herstarten met
code:
1
# /etc/init.d/networking restart

dit gaf ook geen verandering
Het probleem zit volgensmij vrij zeker ergens in de configuratie van kubuntu, want een live-cd werkt perfect vanaf boot met het juiste adres. Maarja, waar :|

Verwijderd

Topicstarter
Opgelost door handmatig
# dhclient
te runnen :9

Dank voor je hulp Superboer_12 _/-\o_