Error installing Ubuntu

Status
Not open for further replies.
OP
aadipa

aadipa

Padawan
I am sure I gave proper DNS as it shows them in GUI settings of Network. But it is not even pinging the Gateway IP.

I will check /etc/resolv.conf once I reach home in evening.
 

gary4gar

GaurishSharma.com
if this also fails then give the output of

Code:
route -n

And I couldn't find file /etc/resolve.conf
Code:
[EMAIL="ashish@Ashish-Linux:~$"]ashish@Ashish-Linux:~$[/EMAIL] cat /etc/resolve.conf
cat: /etc/resolve.conf: No such file or directory

sorry, my bad its resolv.conf:oops:
 
Last edited:
OP
aadipa

aadipa

Padawan
Here is /etc/resolv.conf after addinf those two entries.
Code:
ashish@Ashish-Linux:~$ cat /etc/resolv.conf 
nameserver 202.88.130.15
nameserver 202.88.130.67
nameserver 202.88.130.5
nameserver 208.67.222.222
nameserver 208.67.220.220

Here is route -n
Code:
ashish@Ashish-Linux:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
125.99.92.0     0.0.0.0         255.255.252.0   U     0      0        0 eth0

In the Network manager GUI, I can see the gateway as 125.99.88.1 but route -n don't show the same.
 

mehulved

18 Till I Die............
Ah. your route isn't set.
This isn't definite solution but if it works then we just need to see where things are going wrong. Try this command and see if net works
Code:
sudo route add default 125.99.88.1
This will only stay till the reboot.
If the above makes your connection work then post the contents of /etc/network/interfaces file.
And haan remember to remove that stupid network manager if you're on static IP. It's been one BIG reason for my troubles.
BTW, those 3 DNS servers you have are really crappy. Hathway has given me the same ones. I grew so tired of it that I have been running my own DNS server since like last one year.
And the 2 DNS IP's I gave you are from OpenDNS.
 
OP
aadipa

aadipa

Padawan
Ah. your route isn't set.
This isn't definite solution but if it works then we just need to see where things are going wrong. Try this command and see if net works
Code:
sudo route add default 125.99.88.1
This will only stay till the reboot.
Not working I got error
Code:
sudo route add default 125.99.88.1
SIOCADDRT: No such device

Also
If the above makes your connection work then post the contents of /etc/network/interfaces file.
Posting it after this reboot.

BTW, I tried ping to my machine using localhost and IP (125.99.92.174), both works.
When I ping to gateway (125.99.88.1) I get
Code:
ping 125.99.88.1
connect: Network is unreachable


EDIT:
Here is /etc/network/interfaces
Code:
auto lo
iface lo inet loopback


iface eth0 inet static
address 125.99.92.174
netmask 255.255.252.0
gateway 125.99.88.1

auto eth0
 
Last edited:

mediator

Technomancer
The command for adding default route is erroneous.

Correct one is :=> "sudo route add default gw 125.99.88.1" . Try this!

But neways, if ur address is "125.99.92.174", what the heck is a diff. range gateway doing there i.e "125.99.88.1"?.

Instead of 125.99.88.1, try 125.99.92.1 ,as that might be the most probable gw. But neways, post the output of the command "arp" also.



Edit : Just read the first page. Seems windows is giving some diff. range gateway. Theoretically it shud on the same range. So try both the gateways. Dunno whats wrong with this world. Huh, even a straight cable works on PC to PC here. :D
 
Last edited:

mehulved

18 Till I Die............
No. Check his netmask. The gateway goes with the netmask, so it's probably right.
And yeah there was a typo in my route command, escaped my attention. Do correct that.
 
OP
aadipa

aadipa

Padawan
Hree is arp -v
Code:
[SIZE=2][SIZE=2]ashish@Ashish-Linux:~$ arp -v[/SIZE]
[SIZE=2]Address                  HWtype  HWaddress           Flags Mask            Iface[/SIZE]
[SIZE=2]125.99.88.1              ether   00:14:F1:D9:9C:05   C                     eth0[/SIZE]
[SIZE=2]Entries: 1      Skipped: 0      Found: 1[/SIZE]
[/SIZE]

 

mehulved

18 Till I Die............
Open aptitude and remove all installed instances of networkmanager and reboot. You don't need any tool since you're on static IP.
NetworkManager has always troubled me while setting static IP's. Whenever I install any distro one of the first things I do is remove it.
 

mediator

Technomancer
Hree is arp -v
Code:
[SIZE=2][SIZE=2]ashish@Ashish-Linux:~$ arp -v[/SIZE]
[SIZE=2]Address                  HWtype  HWaddress           Flags Mask            Iface[/SIZE]
[SIZE=2]125.99.88.1              ether   00:14:F1:D9:9C:05   C                     eth0[/SIZE]
[SIZE=2]Entries: 1      Skipped: 0      Found: 1[/SIZE]
[/SIZE]

Guess thats the gateway then. Add the default gateway now and check if it pings "ping 4.2.2.1".
 
OP
aadipa

aadipa

Padawan
I tried this syntax.. here is the error I got.
Code:
sudo route add -net 0.0.0.0 gw 125.99.88.1
SIOCADDRT: No such process
 
OP
aadipa

aadipa

Padawan
remove networkmanager
done.. no effect.

Command is wrong again! Try
'sudo route add default gw 125.99.88.1'
SIOCADDRT: No such process

ping 4.2.2.1
ping -c3 76.162.89.197
connect: Network is unreachable

Also just I tried to ping some IPs in my IP range, and strangly it works.
I was able to ping 125.99.92.1 but if I go to anything other than 125.99.92.xxx it won't work. It seems that OS is not using the netmask and guessing its own netmask.
 

mediator

Technomancer
1.First remove any gateway that is present
- a. u check that from 'route -nee'
- b. n implement as 'sudo route del default gw xx.xx.xx.xx'

2. Now fill in the gateway. Try "125.99.92.1" now!
'sudo route add default gw 125.99.92.1"


AFAIR, the error u encountered is also thrown when the gateway being filled is not valid!!
 
OP
aadipa

aadipa

Padawan
oops i just edited /etc/network/interfaces to look like this
Code:
auto lo
iface lo inet loopback


auto eth0
iface eth0 inet static
address 125.99.92.174
netmask 255.255.252.0
gateway 125.99.92.1
restarted the machine and now its working..

Still this is not a perfect solution as I can work with 125.99.88.1 as gateway in Windows XP but Ubuntu doesn't accept it. Now next task compiz-fusion
 

gary4gar

GaurishSharma.com
For Compiz fusion first Check whether your video card for 3D.

Code:
 glxinfo | grep rendering
1) It should say yes & else post back with your model no.

2) Click ME to install compiz-setting-manager.

3) Go to System>Preferences>Appearance>Visual Effects>Custom
Select Preferences. Now enable & disable pulgins according to your needs.
watch this video for what plugin does what
www.youtube.com/watch?v=E4Fbk52Mk1w

For Keyboard Shortcuts
check this
*ulyssesonline.com/2007/10/25/compiz-fusion-keyboard-shortcuts/
 

mediator

Technomancer
@mehul, can u provide some links explaining about "gateway goes with the netmask" in such a scenario as this thread. Man I am losing my memory. Will have to revive on this neways!

@aadipa : Congos! But neways, can please provide the output of "tracert 125.99.88.1" and "tracert yahoo.com" from windows just for my observation?? And yeah here's the eye kandy.
 

mehulved

18 Till I Die............
I have never read it from textual stuff really. About netmask I have learnt from watching people and managing the network at FOSS Lab.
Search engines should give you good enough information. There are lots of subnet calculators out there which will aid in explanation of the concept by doing the calculation at the page. And there's always wikipedia.
 
Status
Not open for further replies.
Top Bottom