Messages in this thread | | | Date | Tue, 2 Feb 1999 12:16:27 GMT | From | Sam Mortimer <> | Subject | Re: howto disable auto route setup? |
| |
In article <796kit$kge$1@gate.mps.co.uk> you write: >On Tue, 2 Feb 1999, Sam Mortimer wrote: > >> > ifconfig 192.168.0.1 netmask 255.255.255.0 dev eth0 up >> > >> > what route i want? >> >> erm... clearly all ip nodes addressed from 192.168.0.1 through to >> 192.168.0.254 are accessible through eth0 (or so you're ifconfig command >> infers) - why not save a bit of work and automatically add this to the >> routing table? > >Because the ifconfig says that the interface exists on that network >with that address
..and subnet mask!
>. It does not say that packets may be routed out >through that interface.
i don't see this as being relevant. there won't be anything listening on the interface at this point.
> That is route's job.
route should be used to confige what remote networks are available via which interface. (the exception would be when using ip aliasing and you want to force a certain src ip addr when talking to a particular destination)
> That is the way most >network engineers I know expect things to be.
if you say so. personally, i think it's the right way to do it. cisco IOS adds the implicit route, btw.
Cheers, -Sam.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |