Eric Wolzak wrote:
> 
> Hello David, you wrote

> > Right now, the Oxygen image with glibc 2.1 is not quite usable as I
> > had to get rid of ifconfig; however, now I'm fumbling with 'ip' and
> > not getting very far.
> >
> I put a short summary of the most used ip commands on my page
> http://leaf.sourceforge.net/devel/ericw/ip-syntax.php

Thanks!

> A rather extensive and good documentation you can find at :
> http://snafu.freedom.org/linux2.2/docs/ip-cref/ip-cref.html

I saw that a long time ago but forget that it was there.

> > I know I can do:
> >
> > ifconfig eth0 172.16.3.44 netmask 255.255.0.0 broadcast 172.16.255.255
> > up
> >
> > I gather this takes TWO commands under 'ip' ...
> right
> ip link set eth0 up
> ip  addr add 172.16.3.44/16 dev eth0

If I do this in reverse, is that a problem?  I also noticed that the
addresses just "keep piling up" if you don't flush them out.

> > Also, I can't seem to get the equivalent of this:
> >
> > route add -net 127.0.0.0 mask 255.0.0.0 dev lo
> 
> ip addr add 127.0.0.0/8 dev lo
> ping 127.1.2.3 functions then allready
> you could add
> ip route add 127.0.0.0/8 via 127.0.0.1

Ahhhh.... how does this last differ from:

ip addr add 127.0.0.0/8

?

Some other questions and/or notes:

* As I said, ip addr add adds *ANOTHER* address to the network IF.
* Given an IP address (say 172.16.99.99) and a netmask (255.255.0.0)
how do you plug these into 'ip'?  I gather you can't, and must
translate to this: 172.16.99.99/16 ... If so, is there a way to do
this translation automatically?
* In some versions and OSes, it appears you must add a route for the
interfaces; I've always guessed that since Linux 2.2 this wasn't
necessary.
* How do you set the Ethernet address?  Is this: ip link addr
XX:XX:XX:XX:XX:XX ?

_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to