Linux Network Settings
Hello all,
I am trying to add a Linux machine to my network. I am very new at this, and my minimal experience was over a year ago. I used the ifconfig eth0 to set the IP Address & the Mask, the Bcast was set automatically. As I still can't ping the Linux machine from my LAN, I think it is my gateway addr. (Currently 0.0.0.0). I JUST DON"T KNOW HOW TO CHANGE IT :( and cant see to find the correct command parameters. Anyone? |
try this,
route add default gw xxx.xxx.xxx.xxx more info would be helpfull, distro, etc. have you tried running netconfig? |
Running SuSE 7.3
I added the gw as per your instructions, but when I ifconfig I see the following: TX packets:0 errors:10 dropped:0 overruns:0 carrier:20 |
could we see the output of ifconfig, and route -n, also try running netconf.
|
what is the full output of ifconfig and route,
|
eth0 Link encap:Ethernet HWaddr00:20:18:56:81:xx
inet addr:10.1.10.21 Bcast:10.255.255.255 Mask:255.255.255.0 inet6 addr: fe80::220:18ff:fe56:817b/10 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:10 dropped:0 overruns:0 carrier:20 TX packets:0 errors:10 dropped:0 overruns:0 carrier:20 Collision:170 txqueuen:100 RX bytes:0 (0.0 b) TX bytes:724 (724.0 b |
OOPS, Not complete. 1 min. please
|
eth0 Link encap:Ethernet HWaddr00:20:18:56:81:xx
inet addr:10.1.10.21 Bcast:10.255.255.255 Mask:255.255.255.0 inet6 addr: fe80::220:18ff:fe56:817b/10 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 carrier:20 TX packets:0 errors:10 dropped:0 overruns:0 carrier:20 Collision:170 txqueuen:100 RX bytes:0 (0.0 b) TX bytes:724 (724.0 b) Interrupt:17 Base address:0xc000 lo Link encap:Local Loopback inet addr:127.0.0.0 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:32 errors:0 dropped:0 overruns:0 frame:0 TX packets:32 errors:0 dropped:0 overruns:0 carrier:0 Collision:0 txqueuen:0 RX bytes:2184 (2.1 Kb) TX Bytes:2184 (2.1 Kb) route -n Destination Gateway Genmask Flags Metric Ref Use Iface 10.1.10.1 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 10.1.10.1 0.0.0.0 UG 0 0 0 eth0 |
|
Followed the link you gave me. I used YAST to config the eth0, but I am still having a problem.
YAST - Set the IP, Mask & GW When I exit YAST, ifconfig down, ifconfig up & route -n I see the correct IP & Mask BUT THE WRONG GW. This makes no sense to me. I also tried to add default gw, but that does not change the gw of my interface (eth0), it displays an additional line when I route -n. Any suggestions? Thanks. |
All times are GMT -5. The time now is 02:40 PM. |