Re: ifconfig add -> resolver error
Tony Nugent <[email protected]> Thu, 26 Sep 2002 19:21:45 +1000
| Newsgroups | gmane.linux.redhat.release.zoot |
|---|---|
| Organization | Linux Works for network |
| Message-ID | <[email protected]> |
On Wed Sep 25 2002 at 16:58, "Jason Pratt" wrote: > Hi. I've been having an issue with ifconfig when adding an ip address. > it goes like this: > > > ifconfig eth0 add 192.168.1.9 > > 192.168.1.9: Resolver Error 0 (no error) Where is the network mask? Also, better to use "/sbin/ip address add dev eth0 192.168.1.9/24" (or whatever netmask you need). The 2.2.x kernels introduced an brand new and very powerful ip networking structure that makes it one of the most advanced routers available. With this one tool, you can configure almost every component of your networking, and do some real magic (like multiple default routes, policy routing and so on). /sbin/tc (traffic control) is its sister utility that allows you to filter and control ip traffic through your router. Check them out! (Search google for the advanced routing howto). > the current interface configuration is as follows: > > eth0 Link encap:Ethernet HWaddr 00:02:55:9C:20:D1 > inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0 [ ... ] > routing looks like this: > > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use Iface > 192.168.1.101 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 [ ... ] "/sbin/ip address" (or "ip a" for short) will give a much more useful and accurate status of your IP addresses than /sbin/ifconfig. Also, "/sbin/ip route" (or "ip r") is much more comprehensive (and powerful) than /sbin/route (which, like ifconfig, is now obselete). With /sbin/ip you can easily add multiple addresses without having any of them aliased. (Although with rh6.2 it is the only way to have it configured correctly at bootup). Cheers Tony