Linux Administration Cookbook
上QQ阅读APP看书,第一时间看更新

Getting ready

We're going to use our second network, which is new to this chapter. If you're using the Vagrantfile from before, you're already set up with this network. If you're running your own system, add another NIC to each of your virtual machines on the same network.

Use Vagrant to connect to centos1.

$ vagrant ssh centos1

Check that the eth2 interface is available to you. It should look similar to the following:

$ ip link show eth2
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 08:00:27:7d:f3:6b brd ff:ff:ff:ff:ff:ff