- Posts: 177
- Thank you received: 0
linux help!!
18 years 11 months ago #11623
by monsky
Replied by monsky on topic Re: linux help!!
/sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:D8:78:EC:72
inet addr:192.168.1.11 Bcast:192.168.1.255
Mask:255.255.255.0
inet6 addr: fe80::211:d8ff:fe78:ec72/64
Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2756 errors:0 dropped:0 overruns:0 frame:0
TX packets:2805 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1309525 (1.2 MiB) TX bytes:392277 (383.0 KiB)
Interrupt:5 Base address:0xc400
eth1 Link encap:Ethernet HWaddr 00:08:A1:89:CE:49
inet addr:192.168.0.254 Bcast:192.168.0.255
Mask:255.255.255.0 inet6 addr: fe80::208:a1ff:fe89:ce49/64
Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0xc00
the default gateway of the internal network is the eth1 with a static address 192.168.0.254.
eth0 Link encap:Ethernet HWaddr 00:11:D8:78:EC:72
inet addr:192.168.1.11 Bcast:192.168.1.255
Mask:255.255.255.0
inet6 addr: fe80::211:d8ff:fe78:ec72/64
Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2756 errors:0 dropped:0 overruns:0 frame:0
TX packets:2805 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1309525 (1.2 MiB) TX bytes:392277 (383.0 KiB)
Interrupt:5 Base address:0xc400
eth1 Link encap:Ethernet HWaddr 00:08:A1:89:CE:49
inet addr:192.168.0.254 Bcast:192.168.0.255
Mask:255.255.255.0 inet6 addr: fe80::208:a1ff:fe89:ce49/64
Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0xc00
the default gateway of the internal network is the eth1 with a static address 192.168.0.254.
18 years 11 months ago #11648
by DaLight
Replied by DaLight on topic Re: linux help!!
Can you post the results of the "route" command from your system?
18 years 11 months ago #11659
by monsky
Replied by monsky on topic Re: linux help!!
this is the result of arp
/sbin/arp
Address HWtype HWaddress Flags Mask Iface192.168.0.69 (incomplete) eth1
192.168.1.1 ether 00:0E:50:4D:E8:7C C eth0
192.168.1.11 ether 00:0F:1F:FB:26:B9 C eth0
/sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
/sbin/arp
Address HWtype HWaddress Flags Mask Iface192.168.0.69 (incomplete) eth1
192.168.1.1 ether 00:0E:50:4D:E8:7C C eth0
192.168.1.11 ether 00:0F:1F:FB:26:B9 C eth0
/sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
18 years 11 months ago #11661
by monsky
Replied by monsky on topic Re: linux help!!
found the problem.. i replaced the eth1 card..(with the same type cnet pro200). and it is working now. it pinged . i can now proceed to my main objective.. to setup squid. . but first i have to know how to route so that my internal network i could be able to use the internet through this linux of MINE.. he he he..
this will become my linux saga. aaarrgghhh!
dalight, reaper thanks for the attention. by the way how could i be able to route these 2 nics?
this will become my linux saga. aaarrgghhh!
dalight, reaper thanks for the attention. by the way how could i be able to route these 2 nics?
18 years 11 months ago #11662
by monsky
Replied by monsky on topic Re: linux help!!
the problem that i have now is... it seems i cant go beyond 192.168.1.11 (eth0). from my staton1 which is 192.168.0.69 i could ping 192.168.0.254 (eth1) and 192.168.1.11(eth0) and vice versa. the question is: why is it from the station1 i wont be able to ping the 192.168.1.1 which is the router/modem?
forgive me hope this thread might help others too.
forgive me hope this thread might help others too.
18 years 11 months ago #11664
by reaper
Replied by reaper on topic Re: linux help!!
You need to turn on ip_forward to use routing. You can do this in two ways, either a temporary solution or a permanent. You can use "echo 1 > /proc/sys/net/ipv4/ip_forward" but this will not be saved after a reboot. The other way is to edit /etc/sysctl.conf and set "net.ipv4.ip_forward = 1". This will be saved after a reboot, you migh need to use "sysctl -p" for the change to take effect. You also need to add a default route to your modem from the linux machine. You can do this with "route add default gw modem_ip". Hope this gives you some help.
Good luck.
Good luck.
Time to create page: 0.134 seconds