[gentoo-user] ifconfig vs iproute2

2005-10-15 Thread Martins Steinbergs
hi

what is the difference in general between these - ifconfig and iproute2?

i used old style /etc/conf.d/net and it worked well until system last update i 
run - net was gone. made new style /etc/conf.d/net but ifconfig version 
refused to work, lucky i got windoze on other drive to get iproute2 source 
from mirror. ok, now net is working but im still confused about ifconfig not 
working, got these setings for single box connected to i-net, is there 
somethin' wrong?

hotplug_eth0=yes

modules=( iproute2 )
here i tried both modules

config_eth0=( some_IP netmask some_IP broadcast some_IP )
routes_eth0=(
default via some_IP
::/0
)



martins
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ifconfig vs iproute2

2005-10-15 Thread Joshua Schmidlkofer
iproute2 is newer and while it takes over all of the abilities of
ifconfig, it is modularized and designed for controlling advanced
router features as well as basic interface related stuff.

The capabilities of it are vastly superior to ifconfig, and sometimes the notation is simpler.

Setup eth0, and activate it:

ifconfig eth0 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255 up
route add -net 0/0 gw 192.168.1.254

ip addr add 192.168.1.1/24 brd 192.168.1.255
ip link set eth0 up
ip route add default via 192.168.1.254



There is a type of NAT [aka FastNAT] that you can use with iproute2 -
involving no iptables/netfilter support. You can setup multiple
defoult routes, rudimentary load balancing, and other stuff. 


For a better concept of the abilities of iproute2 - please see http://lartc.org
The Linux Advanced Routing and Traffic Control site.

thanks,
 joshua

On 10/12/05, Martins Steinbergs [EMAIL PROTECTED] wrote:
hiwhat is the difference in general between these - ifconfig and iproute2?i used old style /etc/conf.d/net and it worked well until system last update irun - net was gone. made new style /etc/conf.d/net but ifconfig version
refused to work, lucky i got windoze on other drive to get iproute2 sourcefrom mirror. ok, now net is working but im still confused about ifconfig notworking, got these setings for single box connected to i-net, is there
somethin' wrong?hotplug_eth0=yesmodules=( iproute2 )here i tried both modulesconfig_eth0=( some_IP netmask some_IP broadcast some_IP )routes_eth0=(
default via some_IP::/0)martins--gentoo-user@gentoo.org mailing list


Re: [gentoo-user] ifconfig vs iproute2

2005-10-15 Thread Hemmann, Volker Armin
On Saturday 15 October 2005 18:48, Joshua Schmidlkofer wrote:
 iproute2 is newer and while it takes over all of the abilities of ifconfig,
 it is modularized and designed for controlling advanced router features as
 well as basic interface related stuff.

 The capabilities of it are vastly superior to ifconfig, and sometimes the
 notation is simpler.

 Setup eth0, and activate it:

 ifconfig eth0 192.168.1.1 http://192.168.1.1 netmask
 255.255.255.0http://255.255.255.0broadcast
 192.168.1.255 http://192.168.1.255 up
 route add -net 0/0 gw 192.168.1.254 http://192.168.1.254

 ip addr add 192.168.1.1/24 http://192.168.1.1/24 brd
 192.168.1.255http://192.168.1.255
 ip link set eth0 up
 ip route add default via 192.168.1.254 http://192.168.1.254


http:// ???

that does not have anything to do there... http:// is for urls...
In the config, you are only dealing with ips ;)
-- 
gentoo-user@gentoo.org mailing list