Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Assinging virtual interface keepalived iproute2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
chiefbag
Guru
Guru


Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom

PostPosted: Fri Dec 20, 2013 9:34 am    Post subject: Assinging virtual interface keepalived iproute2 Reply with quote

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:
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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum