Forum Discussion
Altera_Forum
Honored Contributor
21 years agoaddresses in route
I've got a Nios Kits development board and I can't configure the gateway's address for the internet access.
I try with route ad -net 192.168.1.10 netmask 255.255.255.0 gw 192.168.1.1 but I received the error following route: netmask doesn't match route address. The addresses are ok, but with route command I've 192.168.1.0 * 255.255.255.0 UG 0 0 0 eth0 therefore the first address is wrong. (The command inet_route is missing) What can I do? Many thanks.1 Reply
- Altera_Forum
Honored Contributor
Hmm...to me 192.168.1.10 isn't a net but a host (o;
On the other side you add a net in the routing table in which subnet your gateway is in...makes absolutely no sense to me...