ovs+docker实现TCP/IP详解中的实验环境
本文搭建了TCP/IP详解中的实验环境,以用于学习TCP/IP协议。
一.网络配置
- 为VMARE虚拟机添加NAT和Host网络,DHCP启动
- 修改网络配置文件 vi /etc/network/interfaces,编辑如下
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet dhcp
- 重启虚拟机,然后查看两个网卡是否正确配置,ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:b5:2a:d3
inet addr:192.168.112.134 Bcast:192.168.112.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:feb5:2ad3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:79 errors:0 dropped:0 overr