ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] p6 etcnet duumy interface
@ 2012-04-18 12:16 Denis Kuznetsov
  2012-04-18 15:22 ` Vitaly Kuznetsov
  2012-04-20  8:49 ` Sergey
  0 siblings, 2 replies; 6+ messages in thread
From: Denis Kuznetsov @ 2012-04-18 12:16 UTC (permalink / raw)
  To: ALT Linux sysadmins' discussion

Доброго времени суток!
Никогда не думал что пригодится, но на cisco привык юзать loopback интерфейсы,
аналогом которых в линукс и есть dummy. Краткое howto, что-бы не забыть.

tail /etc/net/ifaces/dummy0/*
==> /etc/net/ifaces/dummy0/ipv4address <==
192.168.192.132/32

==> /etc/net/ifaces/dummy0/options <==
DISABLED=no
ONBOOT=yes

#modprobe duumy
#echo dummy >> /etc/modules
# ifup dummy0
/sbin/modprobe: invalid option -- 'o'
Usage: /sbin/modprobe [-v] [-V] [-C config-file] [-d <dirname> ] [-n] [-i] 
[-q] [-b] [-o <modname>] [ --dump-modversions ] <modname> [parameters...]
/sbin/modprobe -r [-n] [-i] [-v] <modulename> ...
/sbin/modprobe -l -t <dirname> [ -a <modulename> ...]
Cannot find device "dummy0"

типа того приехали... 
патч:
--- /etc/net/scripts/create-dummy.old   2012-04-18 08:10:32.176060832 -0400
+++ /etc/net/scripts/create-dummy       2012-04-18 08:11:18.820060313 -0400
@@ -8,5 +8,6 @@
 # is done for dummies, so if we see the name already present,
 # the work is over.
 iface_exists $NAME && exit
-modprobe_with_rename -o $NAME dummy >/dev/null
+#modprobe_with_rename -o $NAME dummy >/dev/null
+ip link add name dummy0 type dummy
 $IP link set dev dummy0 name $NAME


-- 
Denis Kuznetsov

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-20  8:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-18 12:16 [Sysadmins] p6 etcnet duumy interface Denis Kuznetsov
2012-04-18 15:22 ` Vitaly Kuznetsov
2012-04-18 16:25   ` Denis Kuznetsov
2012-04-18 17:19     ` Michael Shigorin
2012-04-18 19:32     ` Vitaly Kuznetsov
2012-04-20  8:49 ` Sergey

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git