Hi all, Ok, im going completely insane with this apparently simple task: I'm trying to set up my Ubuntu (Jaunty 9.04) guest machine on vmware to have a static ip of 10.36.84.10. According to all the documentation I have seen on the web (inc VMWares own site) all you have to do is treat the guest OS like a normal machine and set a static ip in the usual way. The machine is set to have a Bridged Network adapter from the windows xp host, and it works fine with DHCP. But having set up the files shown below to make the ip static, it loses all connection to the web and nothing can ping it. Totally confused!! /etc/network/interfaces: auto eth0 iface eth0 inet static address 10.36.84.10 netmask 255.255.252.0 gateway 10.36.84.1 /etc/resolv.conf: # Generated by NetworkManager domain mydomain.com search mydomain.com nameserver 10.36.84.47 nameserver 10.36.84.46 The machine has been linked to my domain using LikeWise - not sure if that is significant or not, but it worked fine, and I have followed the same process that I usually follow with actual servers. This is my first attempt at a virtual one... If you need any more info, just shout! Many thanks, Paul
Hi there, here you go: setup@vm-linux-01:/etc/network$ ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0c:29:e4:0d:79 inet addr:10.36.84.10 Bcast:10.36.87.255 Mask:255.255.252.0 inet6 addr: fe80::20c:29ff:fee4:d79/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5192 errors:0 dropped:0 overruns:0 frame:0 TX packets:298 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:497886 (497.8 KB) TX bytes:48388 (48.3 KB) Interrupt:19 Base address:0x2024 lo Link encap:Local Loopback LOOPBACK MTU:16436 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:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) pan0 Link encap:Ethernet HWaddr fa:71:58:01:a2:74 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:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
I just mindlessly got that info and pasted it on as asked (ive been staring at stuff like it for hours - its maddening!) and ive just noticed thats actually set as the ip I want it to be... But if it actually set it - it doesnt work. How wierd...
try: auto eth0 iface eth0 inet static address 10.36.84.10 netmask 255.255.252.0 gateway 10.36.84.1 broadcast 10.36.87.255 (i've added the broadcast line, i think it's set incorrectly when you don't specify it) also, is the gateway correct? you could check: - set static info -> "ifconfig" and "ip addr" - set dhcp info -> "ifconfig" and "ip addr" see if those commands give different output
Hi, Heres wierd for you: its now working. I would tell you exactly why this is if I had the first clue. All I did was: 1: changed the /etc/network/interfaces file back to the static ip configuration as shown in my original post. 2: added the broadcast line (quite possibly the reson it now works, thanks Mark NL) 3: removed the NetworkManager GUI (I read in another post it causes problems on some versions of ubuntu and I dont use it) Any or all of these have done the trick, so once again I get it working thorugh help from others and dumb luck!! Many thanks!