Is it possible to implement IPv6 on a virtual interface (eth0:1 interface) in Linux?
2017-06-03 14:50
561 查看
https://unix.stackexchange.com/questions/335894/is-it-possible-to-implement-ipv6-on-a-virtual-interface-eth01-interface-in-li
If I assign an IPV6 address to the virtual interface created like
It's all working fine on IPv4, but I need IPv6 on the virtual interface as well. I tried everything that worked on the physical interface and I cannot get anything IPv6 to show for the
=====================================================================
IPv4 implementations originally only supported one address per interface, which is why virtual interfaces were invented so you can add multiple addresses on the same physical interface.
IPv6 supports multiple addresses per interface by default so there is no need to use virtual interfaces for IPv6. Just add them to the interface itself, the end result is the same.
If I assign an IPV6 address to the virtual interface created like
eth0:1, then it gets automatically assigned to its real interface
eth0.
It's all working fine on IPv4, but I need IPv6 on the virtual interface as well. I tried everything that worked on the physical interface and I cannot get anything IPv6 to show for the
eth0:1interface.
eth0 Link encap:Ethernet HWaddr 00:04:9f:02:81:97 inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fc00:1234:1::10/120 Scope:Global inet6 addr: fc00:1234:1::70/120 Scope:Global inet6 addr: fc00:1234:1::42/120 Scope:Global inet6 addr: fc00:1234:1::40/120 Scope:Global inet6 addr: fe80::204:9fff:fe02:8197/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:36 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:5528 (5.3 KiB) Base address:0xe000 eth0:1 Link encap:Ethernet HWaddr 00:04:9f:02:81:97 inet addr:192.168.1.40 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Base address:0xe000[/code]
=====================================================================
IPv4 implementations originally only supported one address per interface, which is why virtual interfaces were invented so you can add multiple addresses on the same physical interface.
IPv6 supports multiple addresses per interface by default so there is no need to use virtual interfaces for IPv6. Just add them to the interface itself, the end result is the same.
相关文章推荐
- Is it possible to display icons in a PopupMenu?
- Is it possible to make asp.net themes available to all sites on the sever?
- IELTS12 Test5 It is good to share as much information as possible in any areas
- Not enough physical memory is available to power on this virtual machine with its configured setting
- What is EPOLL? EPOLL vs Select call? And How to implement UDP server in Linux using EPOLL?
- Is it possible to show some Word Document (or Excel document) in a UniGUI Frame ?
- What is EPOLL? Epoll vs Poll vs Select call ? And How to implement UDP server in Linux using EPOLL?
- It is not possible to run two different versions of ASP.NET in the same IIS process:IIS
- It is not possible to run two different versions of ASP.NET in the same IIS process.问题的解决
- Is it possible to make asp.net themes available to all sites on the sever?
- 关于打开Eclipse时出现eclipse failed to create the java virtual machine与locking is not possible in the direc
- 关于linux内核 linux-2.6.34 编译报 unable to find suitable fs in /proc/mount,is it mounted? 问题说明
- Is it possible to use a checkbox in a split button list instead of the gear icon?
- date(): It is not safe to rely on the system's timezone settings in CodeIgniter
- Is it possible to display icons in a PopupMenu?PopupMenu中显示图片是否可能
- It is not possible to run two different versions of ASP.NET in the same IIS process
- How to install oracle by Command Line Interface(CLI) in silent mode on Linux
- 关于打开Eclipse时出现eclipse failed to create the java virtual machine与locking is not possible in the directory问题的解决
- Is it possible to implement a Firebug-like “inspect element” DOM element highlighter with client-side JavaScript?
- It is said that wars in the 21st century will be fought over water. Do you agree? What do you think can be done now to alleviate