rocknrollstar (20th May 2009)
Hi, I am complete newb with *nix. I am aiming to use FOG to help image several machines. I've installed Ubuntu on a 5 year old machine, and it's running fine. I've given it a static IP, and I can ping other computers on the network, and access resources on our Win2k server/XP client school network.
However, I can't seem to access the internet at all from the Ubuntu machine. The proxy settings have been set both in Ubuntu (System Wide) and in Firefox. I've also rebooted the machine, and didn't make any difference.
Can anyone help me out, or point me in a good direction? I've search on google and can't really find anything that's helpful to me.
Many thanks!
could you supply the results of the following
in terminal
sudo ifconfig
and
route -n
and maybe i can help
Thanks jmcdermott, will do this tomorrow and post on the forum.
Cheers.
Hi, the responses from the commands are as follows:
sudo ifconfig:
eth0 Link encap:Ethernet HWaddr 00:0c:f1:7e:8d:e9
inet addr:10.199.224.80 Bcast:10.199.231.255 Mask:255.255.248.0
inet6 addr: fe80::20c:f1ff:fe7e:8de9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17459 errors:0 dropped:0 overruns:0 frame:0
TX packets:9807 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1827763 (1.8 MB) TX bytes:12594487 (12.5 MB)
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:248 errors:0 dropped:0 overruns:0 frame:0
TX packets:248 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19592 (19.5 KB) TX bytes:19592 (19.5 KB)
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.199.224.0 0.0.0.0 255.255.248.0 U 1 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 10.199.224.1 0.0.0.0 UG 0 0 0 eth0
Thanks in advance. BTW, the WIN2k server is 10.199.224.16, subnet 255.255.248.0. Static IP of the ubuntu server 10.199.224.80. proxy port 3129, cache.hants.gov.uk
2 possibilties apear:
1)
assuming 10.199.231.255 is your router/default gateway, it is not showing up as a route.
to test this try the following
in terminal
route add default gw 10.199.231.255 eth0.
2)
assuming 10.199.224.1 is your router/default gateway, the default gateway is not correctly configured in you network settings.
Hope this helps
ps. should your proxy port not be 8080?
rocknrollstar (20th May 2009)
I tried 'route add default gw 10.199.231.255 eth0'
and got 'SIOCADDRT: Operation not permitted'. Any thoughts?
How can I find out what the default gateway is on Win2k?
Thanks for your help.
sorry that should have been
sudo route add
rocknrollstar (20th May 2009)
Sorry, moment of relapse. Running ipconfig on server gets:
Physical Address. . . . . . . . . : 00-0C-F1-7E-6A-3A
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.199.224.16
Subnet Mask . . . . . . . . . . . : 255.255.248.0
Default Gateway . . . . . . . . . : 10.199.224.1
DNS Servers . . . . . . . . . . . : 10.199.224.16
When adding sudo, I get this reply:
SIOCADDRT: No such process
Any thoughts?
very strange how did you go about setting a static ip, does the web work if you use dhcp?
rocknrollstar (20th May 2009)
what you need to do is reinstall follow this guide up to step 11 only ..
The Perfect Server - Ubuntu 9.04 [ISPConfig 3] | HowtoForge - Linux Howtos and Tutorials
![]()
rocknrollstar (20th May 2009)
thanks cools and jmc. I.ll check out the link and report back.
Jmc- i set the static ip in preferences - network- then on eth0 set the ip, subnet and gateway, and rebooted. Can ping the machine from others pcs, and ping other pcs from the machine. does this help?
Thanks for your continuing help
i spent a while searching through ubuntu forums myself recently for internet problems from behind our schools proxy, i was attempting anything from updates to just a straight internet connection, and failing might i add.
I know its basic, but have you tried to export the proxy through your .bashrc file?
e.g - export http_proxy="http://proxyaddress : port"
found that cured my problems!
Tom
rocknrollstar (20th May 2009)
thanks tmbenson- can you give me a little more detailed instructions on how to do this? Still finding my way around!
Thanks in advance.
depending on the proxy, you may need your credentials, but i managed it without in Ubuntu.
Firstly you need to locate your .bashrc file,
try this in terminal:
gksudo gedit /etc/apt/bashrc
If this fails first find the location of the file and then use gksudo to edit it.
Once you have found your .bashrc file just add a proxy export at the end of it, for both Http and Ftp.
code as follows:
export http_proxy=http://proxy@address:myport
export ftp_proxy=http://proxy@address:myport
save the file and close it.
Depending on which account you are using you MAY also have to find the .profile file in /etc/apt and add the same script to that.
Hope this helps!
Tom
rocknrollstar (20th May 2009)
There are currently 1 users browsing this thread. (0 members and 1 guests)