Author Topic: network problem after config  (Read 2804 times)

graylion

  • Zen Apprentice
  • *
  • Posts: 32
  • Karma: +0/-0
    • View Profile
network problem after config
« on: December 12, 2010, 08:52:20 pm »
Hi guys

when I configure Zentyal 2.0 / Lucid with a static IP address I can still ping internal hosts, but not the gateway and not the internet. As soon as I switch to DHCP this works fine.

config:

DHCP:

eth0      Link encap:Ethernet  HWaddr 00:24:21:bb:a1:7d 
          inet addr:172.16.0.7  Bcast:172.16.0.255  Mask:255.255.255.0
          inet6 addr: fe80::224:21ff:febb:a17d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8747 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4913 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2416133 (2.4 MB)  TX bytes:556534 (556.5 KB)
          Interrupt:27 Base address:0x8000

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.16.0.0      *               255.255.255.0   U     0      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0

/etc/networking/interfaces:
auto lo eth0

iface lo inet loopback
iface eth0 inet dhcp


static:
auto lo eth0

iface lo inet loopback
iface eth0 inet static
        address 172.16.0.253
        netmask 255.255.255.0
        broadcast 172.16.0.255

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.16.0.0      *               255.255.255.0   U     0      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0

eth0      Link encap:Ethernet  HWaddr 00:24:21:bb:a1:7d 
          inet addr:172.16.0.253  Bcast:172.16.0.255  Mask:255.255.255.0
          inet6 addr: fe80::224:21ff:febb:a17d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13254 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8739 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2775263 (2.7 MB)  TX bytes:906385 (906.3 KB)
          Interrupt:27 Base address:0x8000


I have tried manually adding "gateway 172.16.0.254" to /etc/network/interfaces" and restart the network service but that doesn't help either.

anybody?

Thanks!

Josep

  • Zen Samurai
  • ****
  • Posts: 255
  • Karma: +6/-0
    • View Profile
Re: network problem after config
« Reply #1 on: December 13, 2010, 09:08:57 am »
Are you using the Web GUI to do the work?
There should be no problem in moving from DHCP assigned information to static config, but you must bear in mind that you will need to define everything. Specifically you need to add a gateway in Core>Network>Gateways, and make sure that the DNS is working as well.
Avoid messing with the configuration files directly, as they are recreated whenever a service is restarted and you will loose all your work.
If you need very specific configurations, you may want to read a little bit more about Zentyal and how to tune your system. It involves messing with the Mason templates system and/or hooks.

graylion

  • Zen Apprentice
  • *
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: network problem after config
« Reply #2 on: December 13, 2010, 12:52:29 pm »
yes I am using the GUI. Will seek out the setting you menntioned.

Thanks!