Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Assinging virtual interface keepalived iproute2

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
chiefbag
Guru
Guru
User avatar
Posts: 542
Joined: Fri Oct 01, 2010 11:08 am
Location: The Kingdom

Assinging virtual interface keepalived iproute2

  • Quote

Post by chiefbag » Fri Dec 20, 2013 9:34 am

Question here on the best possible approach to solve an issue.

I am setting up a HA router using 2 boxes using keepalived and conntrackd.
Contrackd replication is working fine but I am having an issue with keepalived and virtual interfaces.
For example here is one interface I have setup but I am unable to break out the interface into a physical virtual one which I believe is necessary?
Currently both ip addresses are assigned to net0 however I wish to break them up like was possible before ie. eth0 and eth0:1.
Is this possible now as I believe iproute2 is now used instead of ifconfig module?

Here is currently what is setup.

Code: Select all

Blank /etc/udev/rules.d/80-net-name-slot.rules so I can assign static naming convention.

cat /etc/udev/rules.d/70-my-network.rules

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="11:11:11:11:11:XX", NAME="net0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="22:22:22:22:22:XX", NAME="net1"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="33:33:33:33:33:XX", NAME="net2"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="44:44:44:44:44:XX", NAME="net3"

cat /etc/conf.d/net

config_net0="192.198.1.2 netmask 255.255.255.0
192.168.1.3 netmask 255.255.255.0"
routes_net0="default via 192.168.1.1"

Restarting net0

Caching service dependencies ...                                                                                       [ ok ]
* Bringing down interface net0
* Bringing up interface net0
*   192.198.1.2 ...                                                                                                       [ ok ]
*   192.168.1.3 ...                                                                                                       [ ok ]
*   Adding routes
*   default via 192.168.1.1 ...  
As above both ips bind to net0.
I wish to bind them as net0 and net0:1
Is this still possible with iproute2?
Top
Post Reply
1 post • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic