Author Topic: Local hostname ip address  (Read 2420 times)

johnaaronrose

  • Zen Apprentice
  • *
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Local hostname ip address
« on: December 28, 2013, 02:50:33 pm »
After installing Zentyal 3.3, I checked the module for File Sharing etc and it said that I need to set the ip address for local hostname. It's possible that I missed setting it on the initial installation. How do I set it now, preferably using the Dashboard etc (i.e. not by CLI)?
Regards,
John

robb

  • Guest
Re: Local hostname ip address
« Reply #1 on: December 28, 2013, 11:21:41 pm »
You should set a static IP address for your internal interface(s). You can do so in the webgui through Core / Network / Interfaces

johnaaronrose

  • Zen Apprentice
  • *
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Local hostname ip address
« Reply #2 on: December 29, 2013, 09:42:24 am »
Thanks. I have set (in that window) Name to eth0, Method to Static, External (WAN) checked, & ip address to 192.168.1.100. Now when I check the Status of File Sharing & Domain Services, I get Samba can't be provisioned ... need ip addresses for Domain & Host. What do I do now?
Regards,
John

christian

  • Guest
Re: Local hostname ip address
« Reply #3 on: December 29, 2013, 10:19:31 am »
Thanks. I have set (in that window) Name to eth0, Method to Static, External (WAN) checked, & ip address to 192.168.1.100

Are you sure this IP is an "external" one ?  ???

johnaaronrose

  • Zen Apprentice
  • *
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Local hostname ip address
« Reply #4 on: December 29, 2013, 03:36:33 pm »
I noticed on the window complaining about Samba not being provisioned.." that there was a link to click on to set the domain  zentyal...Ian (I think that was the default during Installation). SO I clicked that & setup an ip address for the domain also as 192.168.1.100 and then the File Sharing was setup OK when I requested it.

I'm running Zentyal 3.3 32 bit in Virtualbox 4.1.12 under Ubuntu Precise 64 bit. I want to be able to communicate between my Ubuntu host and my Zentyal guest regarding Zentyal as the server for the Ubuntu client and the Zentyal effectively connecting to my router: that's why I set the localhost & domain fro Zentyal as 192.168.1.100 since the router is 192.168.1.1 and my Ubuntu is 192.168.1.12. I've noticed that there is a very slow response from Zentyal: I wonder if this could be due to my having to do something in Virtualbox settings for the Zentyal guest in regard to setting eth0 to 192.168.1.100. Is that reasonable?
PS I'm fumbling because I'm not familiar with Virtualbox & Zentyal.
Regards,
John

robb

  • Guest
Re: Local hostname ip address
« Reply #5 on: December 29, 2013, 04:25:20 pm »
How much memory is provisioned for the Zentyal VM? Response can be low if not enough memory is available. I noticed that Zentyal 3.x uses a lot more memory than 2.x branch and I would suggest at least 2GB for Zentyal 3.x

For local services like Samba your static interface should be set as internal (external (WAN) unchecked)

I would first set up networking before even installing/activating File Sharing module.

johnaaronrose

  • Zen Apprentice
  • *
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Local hostname ip address
« Reply #6 on: December 29, 2013, 08:02:06 pm »
I gave Zentyal 2GB memory & it has improved response time & I am now able to do Save without it hanging.

I now have eth0 with external (WAN) unchecked as 192.168.1.100; router is 192.168.1.1 & Ubuntu (Virtualbox host is 192.168.1.12). File Sharing module is installed & activated. However, even though I have 2 Network Adapters set for Zentyal in Virtualbox, I'm not able to configure eth1 (it objects to 192.168.1.101 as it's in same network as eth0). How do I have Ubuntu as client of Zentyal server with Zentyal pretending to be connected to my router?
Regards,
John

robb

  • Guest
Re: Local hostname ip address
« Reply #7 on: December 29, 2013, 10:49:54 pm »
What would be the use for having another interface in the same subnet?

johnaaronrose

  • Zen Apprentice
  • *
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Local hostname ip address
« Reply #8 on: December 30, 2013, 01:15:01 pm »
My last question was rather stupid!

I am not able to update Zentyal s/w or even to ping my router (192.168.1.1) or another Ubuntu computer. I've disabled the Firewall. What should I do?

PS I've tried adding a gateway for the router with no success on Pinging.
Regards,
John

robb

  • Guest
Re: Local hostname ip address
« Reply #9 on: December 30, 2013, 02:54:36 pm »
Please confirm which modules you have installed and enabled and explain what services Zentyal should be able to do in your network.
Should Zentyal act as a Gateway too? If so, then at least 2 interfaces are necessary and 1 of the interfaces must be connected directly to your router and set as external. The other interface should be set as internal and must have a fixed IP address.

johnaaronrose

  • Zen Apprentice
  • *
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Local hostname ip address
« Reply #10 on: December 30, 2013, 03:37:12 pm »
The purpose of this exercise is to gain knowledge of Zentyal in a test environment. So it's possible that I may have made some stupid errors.

Modules:
Network
Firewall
Antivirus
DNS
Events
Log
Mail
Monitoring
NTP
File Sharing
Users & Computers

Services:
Any protocol & port
Groupware
Incoming mail

Not sure what you mean by the question "Should Zentyal act as a Gateway too". I want Zentyal to connect to the router to download updates, receive mail & I don't as yet know what else. Also, I would like to File Share Zentyal's 'data' files with Ubuntu (the Virtualbox host). Currently, I have 2 interfaces (eth0 & eth1) with one having a router DHCP ip address & set as external, and the other having a static ip address in the router's subnet. Virtualbox has 2 adapters, both set as NAT.

Regards,
John

robb

  • Guest
Re: Local hostname ip address
« Reply #11 on: December 30, 2013, 06:45:59 pm »
Quote
Currently, I have 2 interfaces (eth0 & eth1) with one having a router DHCP ip address & set as external, and the other having a static ip address in the router's subnet

Re-reading your posts, this means they are both in the same subnet. Is this correct?
If so, configure the interface in VBox as 'bridged' it will make an IP address in the same subnet as the host possible. Then just disable 1 interface and set the other with a static IP address in the same subnet as your router and uncheck external. Set your router as default gateway. In this case, Zentyal does not act as a gateway. Configured like this, Zentyal should be able to reach the internet.

johnaaronrose

  • Zen Apprentice
  • *
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Local hostname ip address
« Reply #12 on: January 01, 2014, 08:02:41 pm »
Quote
Currently, I have 2 interfaces (eth0 & eth1) with one having a router DHCP ip address & set as external, and the other having a static ip address in the router's subnet

Re-reading your posts, this means they are both in the same subnet. Is this correct?
If so, configure the interface in VBox as 'bridged' it will make an IP address in the same subnet as the host possible. Then just disable 1 interface and set the other with a static IP address in the same subnet as your router and uncheck external. Set your router as default gateway. In this case, Zentyal does not act as a gateway. Configured like this, Zentyal should be able to reach the internet.


I tried to put them in the same subnet (255.255.255.0)  but it didn't work.

I've amended the settings in Virtualbox (after Powering Down Zentyal) so that there is only one network adapter (eth0) and it is a Bridged Adapter. I then started Zentyal (in Virtualbox), ensured that there was only 1 interface (eth0) and it has a static IP address (192.168.1.100) with Netmask of 255.255.255.0 and External(WAN) is unchecked. I added a Gateway for the router's IP address (192.168.1.1) with it set as default. As I might have previously said, the Ubuntu host has a static IP address of 192.168.1.12. I saved the changes successfully. I'm now able to successfully Ping the router & the Ubuntu host (using 192.168.1.12). I tried the System Updates again and it did it.

Thanks for the (successful) advice. 
Regards,
John

johnaaronrose

  • Zen Apprentice
  • *
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Local hostname ip address
« Reply #13 on: January 08, 2014, 03:19:49 pm »
To enable File Sharing, I also set the domain's ip address to 192.168.1.100 i.e. the same as the eth0 ip address. However, this stops successful ping of 192.168.1.1 (i.e. the router) & 192.168.1.12 (i.e. Ubuntu acting as the VirtualBox host which I want to use as a client to Zentyal for File Sharing). I also now cannot successfully internet browse (on Zentyal) e.g. to www.bbc.co.uk
« Last Edit: January 09, 2014, 09:02:21 am by johnaaronrose »
Regards,
John

robb

  • Guest
Re: Local hostname ip address
« Reply #14 on: January 08, 2014, 09:18:13 pm »
How did you set DNS in Core / Network / DNS?
and are there any forwarders in Infrastructure / DNS?
« Last Edit: January 08, 2014, 09:22:52 pm by robb »