First off I am brand new to this server install. I have been using Ubuntu 7.10 for a few months now. Really enjoy it. Moved my home computer and notebook over from windows, get lost a bit, but slowly I find my way. Server connected to home network through a router. All other computers (5, 3 wired 2 wireless) in house connect through same router. Trying to set up a server. Following instruction in The Perfect Server - Ubuntu Gutsy Gibbon (Ubuntu 7.10). Everything goes according to plan until I get to page 33 where it states, "Edit /etc/network/interfaces" # The primary network interface auto eth0 iface eth0 inet static address 192.168.0.100 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 Ok, did that but I do not get the same results when I restart the network. Or at least this is where I think the problem is.... Then edit /etc/hosts You are supposed to see 127.0.0.1 localhost.localdomain localhost 192.168.0.100 server1.example.com server1. I see 127.0.0.1 localhost.localdomain 127.0.0.1 unbuntu.socal.rr.com <-- this is my server unbuntu, rr is my isp Why am I not seeing the change in address from 127.... to 192..... Also if I change from DHCP to static I cannot access the internet. When I changed to static i could not apt-get anything. Changing back to DHCP and deleting let me get the apt-get to work. I think I just answered my own question... Looking back over my settings I need to change gateway to whatever my router is set up for, otherwise it wont know who to talk to.... Is that correct. If not will somebody point me in the right direction.... thanks
You must change 127.0.1.1 to 192.168.0.100. Yes, you must use an IP address that's in your subnet as well as your router'S internal IP address as the gateway. So if you subnet is 192.168.55.x, then you can't use 192.168.0.100 for your server, but 192.168.55.100 should work (assuming that this IP address is free). When you use DHCP, please run Code: ifconfig and post the output here.
ifconfig results.. eth0 inet addr:192.168.1.106 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:159318 errors:0 dropped:0 overruns:59 frame:0 TX packets:14323 errors:0 dropped:0 overruns:0 frame:0 collisions:0 txqueuelen:1000 RX bytes:66694738 (63.6 MB) TX bytes:1442462 (1.3 MB) lo inet addr:127.0.0.1 Mask 255.0.0.0 inet adddr: ::1/128 Scope:Host UP LOOPBACK RUNNINGNMTU:16436 Metric:1 RX packets:304 errors:0 dropped:0 overruns:0 frame:0 TX packets:304 errors:0 dropped:0 overruns:0 frame:0 collisions:0 txqueuelen:0 RX bytes:30344 (29.6 KB) TX bytes:30344 (29.6 KB)
Not yet. I changed a few lines static and the address lines but still came up with the same 127.0.0.1 localhost.localdomain 127.0.0.1 unbuntu.socal.rr.com <-- this is my server unbuntu, rr is my isp I had my sons windows notebook with me and when I changed a few of the lines, such as address, broadcast etc, got an error on the windows machine that there was an conflict. So I know I am going in the right direction. Have to change the address or broadcast or something, but I have to leave for work and won't be able to work on it till I get back tomorrow. From my notes Here is my windows machine ipconfig/all DNS Suffix...socal.rr.com DHCP enabled....yes IP Address.... 192.168.1.102 Subnet Mask..255.255.255.0 Default gateway...192.168.1.1 DHCP Server.....192.1681.1
Try this: IP address 192.168.1.100 (if the IP is free) Netmask: 255.255.255.0 Gateway: 192.168.1.0 Broadcast: 192.168.1.255