I want to be abe to configure (via firefox), from PC1, on subnet 192.168.0.y., the wireless router at 192.168.1.1. (for learning sake)
In other words what route is needed so that
PC1 eth0 0.y --> dlink 192.168.0.1 --> 192.168.1.1 (Below is a figure; dots are blanks / spacing).
Is this possible? From my reading it is looking like I have 2 subnets but no overarching network.
So it is looking bad.
Would router 192.168.0.1 (D-link 604) just happy to forward packets to 192.168.1.1?
It did not look good because pinging 192.168.1.1 via the ping menu in the web interface of 192.168.0.1 (D-link 604) did not work.
I am confused because the "Linux Network Administrator's Guide" says
"With the new networking code, subnetting is not limited to byte boundaries, so even a class
C network may be split into several subnets."
I was going to add (is this correct? already messed this up at home)
route add -net 192.168.1.0 netmask 255.255.255.0 metric 0 dev eth0
although I am wondering if I do not have the netmask wrong and should go for
route add -net 192.168.0.0 netmask 255.255.0.0 metric 0 dev eth0
this thread "192.168.2.1 network with 192.168.0.1? "
make me think I rather need
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.0.1 dev eth0
cable co modem
router dlink604 (firewall integrated) lives at 192.168.0.1 (4-ports) running DHCP
PC1...PC2......Wireless WRT54GS router (4-port). Router lives at 192.168.1.1
- I know, I could remove router dlink604 all together, but I like the challenge and the learning
- I could add a NIC to PC1 (too much challenge because then I need to learn about gateway?)
(saying that I have eth1 on PC1 that I used to test that the wireless router was alive).
- router dlink604 has IP 192.168.0.x where x can be chosen, but 192.168.0. *cannot* be changed.
- PCs are given IP address 192.168.0.y by the DHCP server of the router dlink604
- possibly Wireless router can be given any private fixed IP, so maybe I could swap the two routers (no challenge either)
os just set wireless router to 192.168.0.2 (I think it will remember after each power on/off cycle)
Need to run and check
ping -c1 192.168.1.1 (ping the wireless from PC1)
ip neigh show
Do I need / check echo 1 > /proc/sys/net/ipv4/ip_forward
maybe /proc/sys/net/ipv4/conf/eth0/forwarding (Enable or disable IP forwarding on eth0)
edit /etc/hosts and add the wireless router
Passing through "Linux Advanced Routing & Traffic Control HOWTO" did not help much.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 10 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default dlink604 0.0.0.0 UG 10 0 0 eth0