欢迎来到天天文库
浏览记录
ID:37711691
大小:19.73 KB
页数:5页
时间:2019-05-29
《Linux系统设置及基本操作报告》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、[root@localhost~]#ifconfig查看所有网卡信息eth0Linkencap:EthernetHWaddr00:0C:29:74:E0:FEinetaddr:192.168.174.135Bcast:192.168.174.255Mask:255.255.255.0inet6addr:fe80::20c:29ff:fe74:e0fe/64Scope:LinkUPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1RXpackets:299errors:0dropped:0overruns
2、:0frame:0TXpackets:37errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:18952(18.5KiB)TXbytes:6374(6.2KiB)Interrupt:67Baseaddress:0x2024loLinkencap:LocalLoopbackinetaddr:127.0.0.1Mask:255.0.0.0inet6addr:::1/128Scope:HostUPLOOPBACKRUNNINGMTU:16436Metr
3、ic:1RXpackets:886errors:0dropped:0overruns:0frame:0TXpackets:886errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:0RXbytes:1469880(1.4MiB)TXbytes:1469880(1.4MiB)[root@localhost~]#ifconfigeth0查看第一块网卡信息(本地连接)eth0Linkencap:EthernetHWaddr00:0C:29:74:E0:FEinetaddr:1
4、92.168.174.135Bcast:192.168.174.255Mask:255.255.255.0inet6addr:fe80::20c:29ff:fe74:e0fe/64Scope:LinkUPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1RXpackets:301errors:0dropped:0overruns:0frame:0TXpackets:37errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbyt
5、es:19438(18.9KiB)TXbytes:6374(6.2KiB)Interrupt:67Baseaddress:0x2024[root@localhost~]#ifconfiglo查看回环地址loLinkencap:LocalLoopbackinetaddr:127.0.0.1Mask:255.0.0.0inet6addr:::1/128Scope:HostUPLOOPBACKRUNNINGMTU:16436Metric:1RXpackets:886errors:0dropped:0overruns:0frame:0TXpa
6、ckets:886errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:0RXbytes:1469880(1.4MiB)TXbytes:1469880(1.4MiB)[root@localhost~]#ifconfigeth01.1.1.1/8修改第一块网卡ip地址[root@localhost~]#ifconfigeth0查看修改之后的信息eth0Linkencap:EthernetHWaddr00:0C:29:74:E0:FEinetaddr:1.1.1.1Bcast
7、:1.255.255.255Mask:255.0.0.0inet6addr:fe80::20c:29ff:fe74:e0fe/64Scope:LinkUPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1RXpackets:302errors:0dropped:0overruns:0frame:0TXpackets:48errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:19683(19.2KiB)TXbytes:
8、8680(8.4KiB)Interrupt:67Baseaddress:0x2024[root@localhost~]#ifconfigeth02.2.2.2netmask255.0.0.0修改第一块网卡ip地址[roo
此文档下载收益归作者所有