Home > OS >  Under Linux how to create a virtual network? TCP/udp communication can, but the ifconfig show not to
Under Linux how to create a virtual network? TCP/udp communication can, but the ifconfig show not to

Time:10-05

Under Linux how to create a virtual network? TCP/udp communication can, but the ifconfig show not to come out!

CodePudding user response:

This virtual network no eth0 network devices exist, but have the IP address of the potential, outside machine can provide the IP address of the TCP/udp communication,

Ifconfig is what all can't see, can't see the network equipment, also can't see the IP address

CodePudding user response:

You virtual network interfaces in Linux - https://linuxconfig.org/configuring-virtual-network-interfaces-in-linux

This is to produce an obvious eth0:0 equipment, it is easy to check, is not what I want,

CodePudding user response:

Create Multiple IP Addresses to One Single Network Interface - https://www.tecmint.com/create-multiple-ip-addresses-to-one-single-network-interface/

CodePudding user response:

Virtual network is going to have a virtual card, ifconfig is to display all the network equipment basic information, can't hide (think)

CodePudding user response:

reference 4 floor yuelengdihai response:
is going to have a virtual card, virtual network ifconfig is to display all the network equipment basic information, can't hide (think)

But I saw someone else has done it and added a virtual network, but not the virtual network adapter. Don't show that the virtual network card!

CodePudding user response:

Will certainly show ah, even if the ifconfig does not display the IP add also displays

CodePudding user response:

refer to 6th floor cqyy725 response:
will certainly show ah, even if the ifconfig don't display IP add also


Is!!! Now is to do not!!!!!!!!

CodePudding user response:

refer to 7th floor xqhrs232 response:
Quote: refer to the sixth floor cqyy725 response:

Will certainly show ah, even if the ifconfig don't display IP add also


Is!!! Now is to do not!!!!!!!!

Use alias instead of the command ifconfig

CodePudding user response:

Can add a virtual network adapter, send and receive through the corresponding physical adapter,
But after create the virtual network adapter, ifconfig will, according to

CodePudding user response:

Finally in the/dev/socket/directory shows the socket of his SERVICE name, actually reference installd. C file is good, don't write what reference online daemon and fork twice what of, a great god: hello, is there a specific point of this scheme and code, the Android daemon confirmed alive, very much like the great spirit to guide

CodePudding user response:

Virtual namespace can have a try

CodePudding user response:

Modifying kernel show IP command function, what's the use of words like this? Communication of each other will always know your IP, just local can't see,

CodePudding user response:

Can be done by yourself to write a character device driver, in character device driver to create a device node, and in the contracting process implementation in the kernel (simple implementation is to receive data from pulls in the kernel layer issued or received using the kernel network interactive function), the device node cannot be ifconfig and IP command to see, absolutely meet the questions asked of the Lord

CodePudding user response:

If just don't want to let the ifconfig displays, you can modify the ifconfig in the kernel, customized according to demand to display content,
  • Related