Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A virtual interface with public ipv6 address from a prefix
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
niderecha
n00b
n00b


Joined: 10 Nov 2024
Posts: 22

PostPosted: Thu Mar 27, 2025 7:34 am    Post subject: A virtual interface with public ipv6 address from a prefix Reply with quote

Hi.

My machine has a 64 bit ipv6 prefix from ISP, and everything works as expected.

I'd like to set up a virtual interface with a new public ipv6 address from that prefix. What is the right way to do it?
Back to top
View user's profile Send private message
niderecha
n00b
n00b


Joined: 10 Nov 2024
Posts: 22

PostPosted: Thu Mar 27, 2025 1:46 pm    Post subject: Reply with quote

Here's something to start with. Enable ipvlan in kernel setttings if disabled and run:
Code:
# ip link add name hlan link enp0s2 type ipvlan mode l2
# ip link set dev hlan up

Here hlan is an arbitrary name for the new interface.

I found it here: https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/getting-started-with-ipvlan_configuring-and-managing-networking
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