ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Denis Kuznetsov <kde@kde.kiev.ua>
To: "ALT Linux sysadmins' discussion" <sysadmins@lists.altlinux.org>
Subject: [Sysadmins] p6 etcnet duumy interface
Date: Wed, 18 Apr 2012 15:16:02 +0300
Message-ID: <201204181516.02267.kde@kde.kiev.ua> (raw)

Доброго времени суток!
Никогда не думал что пригодится, но на 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

             reply	other threads:[~2012-04-18 12:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-18 12:16 Denis Kuznetsov [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201204181516.02267.kde@kde.kiev.ua \
    --to=kde@kde.kiev.ua \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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