Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configuring permanent sub-interfaces.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 460
Location: India

PostPosted: Tue May 10, 2016 11:03 am    Post subject: Configuring permanent sub-interfaces. Reply with quote

Hi Experts, every time the machine reboots, the sub-interfaces go off and I have to manually configure all of it again. Please suggest a way to set them permanently even after a system reboot in Gentoo. My /etc/conf.d/net entry for my network interface is:

config_eth0="192.168.2.16 broadcast 192.168.2.255 netmask 255.255.255.0"

I tried to add a subinterface with this additional line:
iface_eth0:1="192.168.4.16 broadcast 192.168.4.255 netmask 255.255.255.0"

and it does not work.

Appreciate all your help and quick response.

Thanks
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Tue May 10, 2016 11:48 am    Post subject: Reply with quote

Code:

config_eth0="192.168.2.16/24 192.168.4.16/24"

_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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