Hi .......

So thumb rule in -- "if something is not expected ,,, Do not use GUI, edit
> configuration files directly"
>
>
well NetworkManager seems to be of no good.so i uninstalled it (temporarily)
and decided to do it the hard way.
After uninstalling NM and rebooting i issued few commands. the output is

[EMAIL PROTECTED]:~$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 10.10.1.2
nameserver 10.10.2.2
[EMAIL PROTECTED]:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet static
address 10.138.0.124
netmask 255.255.254.0
gateway 10.10.1.2

[EMAIL PROTECTED]:~$ cat /proc/net/route
[EMAIL PROTECTED]:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
[EMAIL PROTECTED]:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
[EMAIL PROTECTED]:~$ ifconfig
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:84 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4200 (4.2 KB)  TX bytes:4200 (4.2 KB)

*
Clearly route command displayed nothing and eth0 was also down
so i did this*

[EMAIL PROTECTED]:~$ sudo ifconfig eth0 10.138.0.124 netmask 255.255.254.0 up
[sudo] password for ankur:
[EMAIL PROTECTED]:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:76:e0:94:3e
          inet addr:10.138.0.124  Bcast:10.138.1.255  Mask:255.255.254.0
          inet6 addr: fe80::216:76ff:fee0:943e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:59 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4362 (4.3 KB)  TX bytes:3455 (3.4 KB)

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:84 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4200 (4.2 KB)  TX bytes:4200 (4.2 KB)


*After that as suggested by Sharad*

[EMAIL PROTECTED]:~$ sudo route add default gw 10.10.1.2 eth0
SIOCADDRT: No such process

*but now "route -n"  shows this*
[EMAIL PROTECTED]:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
10.138.0.0      0.0.0.0         255.255.254.0   U     0      0        0 eth0


route command showed some error I dont know what it mean. also it made some
entry in routing table which is not correct. how to correct it.
Thanks

Regards
Ankur

--~--~---------~--~----~------------~-------~--~----~
[EMAIL PROTECTED] mailing list -- group http://groups.google.com/group/iitdlug
-~----------~----~----~----~------~----~------~--~---

Reply via email to