Jump to content

Recommended Posts

Posted

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!

Posted

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

Posted

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?

  • Thanks 1
Posted

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.

Posted

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

Posted

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

Posted

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

  • Thanks 1
Posted

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

  • Thanks 1
Posted

Sorry about that- had to go to a meeting!

 

I've edited the file /etc/apt/bashrc, saved, restarted network, rebooted and it worked! I can now google!

 

Thanks very much for everyone's time. It's a really helpful community, and makes me think linux and varieties can be tamed with support from others.

 

Now to install fog...

 

Thank you!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...