Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
interface alias - need help to configure
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
silverio
n00b
n00b


Joined: 29 Dec 2005
Posts: 2
Location: Brazil

PostPosted: Fri Dec 30, 2005 12:02 am    Post subject: interface alias - need help to configure Reply with quote

hi, everyone. i have to keep different address in one interface and need help how to configure that.
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Fri Dec 30, 2005 12:07 am    Post subject: Reply with quote

Please read the content of /etc/conf.d/net.example. This part is probably what you are looking for:
Code:
# If you need more than one address, you can use something like this
# NOTE: ifconfig creates an aliased device for each extra IPv4 address
#       (eth0:1, eth0:2, etc)
#       iproute2 does not do this
#config_eth0=(
#       "192.168.0.2/24"
#       "192.168.0.3/24"
#       "192.168.0.4/24"
#)

# You can also use IPv6 addresses
#config_eth0=(
#       "192.168.0.2/24"
#       "4321:0:1:2:3:4:567:89ab"
#       "4321:0:1:2:3:4:567:89ac"
#)


cheers

SteveB
Back to top
View user's profile Send private message
silverio
n00b
n00b


Joined: 29 Dec 2005
Posts: 2
Location: Brazil

PostPosted: Fri Dec 30, 2005 12:19 am    Post subject: Reply with quote

Thanks, very much. It helps a lot! Have a Happy New Year!

Silverio
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Fri Dec 30, 2005 12:23 am    Post subject: Reply with quote

You're Welcome. I wish you too a Happy New Year.

cheers

SteveB
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