Netns docker for mac4/14/2023 The environmental information at this time is: :/home/ubuntu# ip link showġ: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1 Ip netns exec net1 ip link set dev eth0 up Ip netns exec net1 ip addr add 10.0.1.2/24 dev eth0 Ip netns exec net1 ip link set dev veth0 name eth0 Ip netns exec net0 ip link set dev eth0 up Ip netns exec net0 ip addr add 10.0.1.1/24 dev eth0 Ip netns exec net0 ip link set dev veth0 name eth0 My commands are typed in the following order: ip netns add net0 I use the network namespace of Linux to simulate the bridge mode of docker, and simulate the structure shown in the following figure: (BR0 is used in the command instead of bridge)
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |