1、su root切换管理员权限,回车输入密码,回车ifconfig查看ip— inet addr:192.168.111.133
[linux@bogon ~]$ su root
Password:
[root@bogon linux]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:6F:E5:CB
inet addr:192.168.111.133 Bcast:192.168.111.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe6f:e5cb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10691 errors:0 dropped:0 overruns:0 frame:0
TX packets:6068 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14356108 (13.6 MiB) TX bytes:370041 (361.3 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:720 (720.0 b) TX bytes:720 (720.0 b)
[root@bogon linux]#
2、
3、添加
4、配置IP
5、输入密码确定添加
6、测试