Author Topic: Problem with network.  (Read 2448 times)

taronsargsyan

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Problem with network.
« on: April 29, 2011, 04:12:28 pm »
Hi

My problem is listed below:

I have two internal network adapters and during configuration from web interface I have set the ip address for both interfaces from the same network and now my servers network want be up.

I have stopped zentyal and changed /etc/network/interfaces and restarted networking and I'm able to connect to server, but the problem is when i start zentyal again it puts wrong ip back and restarts networking and I'm loosing server.

Could someone tell me where I can reset network module configuration ?

this i urgent please help !

thanks in advance

lorenzo

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-1
    • View Profile
Re: Problem with network.
« Reply #1 on: April 29, 2011, 05:02:03 pm »
Hello,

wich type of network are connected to this 2 network adapters? Internal or External ?

Generally you have to set different subnet (es. 192.168.1.0/24 and 192.168.2.0/24 ) to each interface.

Please post the results of "ifconfig" from your administrator terminal there ,

Lorenzo

taronsargsyan

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Problem with network.
« Reply #2 on: April 29, 2011, 06:14:41 pm »
Networks are internal .
Code: [Select]

eth0      Link encap:Ethernet  HWaddr 48:5b:39:70:2c:6e 
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::4a5b:39ff:fe70:2c6e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18110 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8050 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1587549 (1.5 MB)  TX bytes:1575582 (1.5 MB)
          Interrupt:56

eth1      Link encap:Ethernet  HWaddr 00:a1:b0:60:61:e3 
          inet addr:10.1.1.1  Bcast:10.1.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:16 Base address:0xa000

eth2      Link encap:Ethernet  HWaddr 00:a1:b0:60:7f:15 
          inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::2a1:b0ff:fe60:7f15/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1532 (1.5 KB)  TX bytes:2940 (2.9 KB)
          Interrupt:17 Base address:0xc000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:313200 errors:0 dropped:0 overruns:0 frame:0
          TX packets:313200 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:50595786 (50.5 MB)  TX bytes:50595786 (50.5 MB)

vboxnet0  Link encap:Ethernet  HWaddr 0a:00:27:00:00:00 
          BROADCAST MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)



As you can see eth2 and eth0 has the ip address from the same network this is making network crazy and any change to /etc/network/interface being overriden by ebox modules.

any suggestions?

Thanks
Best Regards
Taron


lorenzo

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-1
    • View Profile
Re: Problem with network.
« Reply #3 on: April 29, 2011, 06:45:50 pm »
Is eth1 your external router? Have you setup it on " Network -> Gateways " ?

You can can go to " Network -> Interfaces " and change eth0 && eth2 to "Not Set" , after that save all.

Now set up back eth0 and assign it a static IP like 192.168.1.1, do the same for eth2 and set a static ip like 192.168.2.1 ( the important thing is that you use DIFFERENT subnet ).

I hope that can help you,
Lorenzo

taronsargsyan

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Problem with network.
« Reply #4 on: April 29, 2011, 10:03:11 pm »
HI Lorenzo,

no my external router is eth0, eth1 is internal too, the problem is that when I start ebox from init.d I'm unable to connect to gui, I need to find out from where i can change config manually.

Thanks
« Last Edit: April 29, 2011, 10:26:26 pm by taronsargsyan »

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: Problem with network.
« Reply #5 on: May 02, 2011, 04:08:41 am »
Start ebox and then do a sudo ifdown eth2 from the command line (CTL+ALT+F1) should allow you to break the deadlock. You should then be able to log in to the web interface to fix things.  Alternatively you could start ebox, edit the interfaces file and issue a /etc/init.d/networking  restart (same result, different approach)

EDIT:   Of course sometimes I over think things, just unplug the network cable from the mis-set interface.  (smacks self in head for missing the obvious the first time)
« Last Edit: May 02, 2011, 04:12:56 am by half_life »