Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 20 Feb 2013 12:26:06 +0400
From: gremlin@...mlin.ru
To: owl-users@...ts.openwall.com
Subject: Re: Manage network interfaces

On 20-Feb-2013 11:49:29 +0400, а х wrote:

 > Hello, Can you tell me, please how to manage interfaces in OWL.
 > For example, I need eth0 to become eth1 and eth1 become eth0.

Hmmmm... possibly, `man nameif`?

 > As I see not with udev?

We don't use udev, as it's insecure. Also, properly configured system
doesn't need it.

 > And parameter HWADDR in ifcfg scripts does not help.

Do you actually need to change a MAC address? That's much easier:

ip link set dev eth0 address 00:11:22:33:44:55

 > Or show me, please, doc about this tip. Thank you!

In general, we should rewrite the network configuration scripts from
scratch... For now, personally I use the following quick-and-dirty
trick in init.d/network:

if [ -x /etc/rc.d/rc.network ]; then
  exec /etc/rc.d/rc.network $* || exit 0
fi

That allows me to perform a sort of exotic configuration like:

ip link set dev eth0 up
ip link set dev eth1 up

vconfig add eth1 100
ip link set dev eth1.100 up
brctl addbr lan
brctl addif lan eth0
brctl addif lan eth1.100
ip link set dev lan up
ip address add ... dev lan

vconfig add eth1 7
ip link set dev eth1.7 mtu 1470 up
ip address add ... dev eth1.7

vconfig add eth1 22
ip link set dev eth1.22 up
ip address add ... dev eth1.22


-- 
Alexey V. Vissarionov aka Gremlin from Kremlin <gremlin ПРИ gremlin ТЧК ru>
GPG key ID: 0xEF3B1FA8, keyserver: hkp://subkeys.pgp.net
GPG key fingerprint: 8832 FE9F A791 F796 8AC9 6E4E 909D AC45 EF3B 1FA8

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.