Linux???????????????????
???????????? ???????[ 2013/4/3 11:06:04 ] ????????
????????????????????????????????????????????鼼??????λ??????????????????????????????????Linux?????????????????????鶴?????????У???????????Щ????????????????????????????ЩLinux??????????????????????????
??????????????A??????????B???
???????????????????г?????????????????????????????????????????????????????С???????????????崦???????????У??????dev1?????????????????????web1????????е???????????80????????????????????????????????????????????????????????????????????????????
???????????????????????????й?????????????????????Щ??????裨??????????????????????????Щ??????????????????????á????????????????????????DNS????????????????????????????????????????????????????????????????У????????????????????????????裬?????????????????????????
?????? ???????????????????????
?????????????????????????С????????Χ??????????????е?????????????????????????????????У???????????????dev1?????????繃???μ???????????dev2?????????????????web1?????dev2?????????????web1???????????????????web1??????dev1??dev2??web1????????????????dev2???????????web1??????????????dev1????????????????????????dev2???????web1???????????????????????????dev1????
?????? ???2??????
???????????????????????????С?????????????????????????????????????????????????????????ethtool???????ethtool?????????????????????????豸?????繹?????????????????????????????????????????????????????????/sbin/ifconfig???????п??????????????趨?г?????????????????????豸??eth0???????????
$ sudo ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pg
Wake-on: d
Current message level: 0x000000ff (255)
Link detected: yes
???????????У???????????????????????????“yes”??????dev1????????繹????????????????????????“no”??????????????????dev1??????????????????2????λ???????????????????????????????????衣
???????ethtool????????????????????????????????????????????????????????Linux????????????????????????????????Э????????????????????????????????????????????У?????????ethtool????100Mb/???????????????????????????????????????紫?????????????????????趨?????????????????????????????ethtool???????????????趨??????????????????
$ sudo ethtool -s eth0 autoneg off duplex full
????????????????????????豸????eth0??
?????????????
??????????????????????????????????????????????????ж???????????????????????????????棬????鷽???????ifconfig?????????????????????????????eth0??????????????????????????$ sudo ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:17:42:1f:18:be
inet addr:10.1.1.7 Bcast:10.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::217:42ff:fe1f:18be/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:229 (229.0 B) TX bytes:2178 (2.1 KB)
Interrupt:10
?????????????????У?????п???????????????????????????????????????????????????IP?????10.1.1.7????????????255.255.255.0???????????????????????????y????????????????δ???????????????sudo ifup eth0????????????ifconfig????????????????????????????δ?????????/etc/network/interfaces·????Debian??????/etc/-sysconfig/-network_scripts/ifcfg-<interface>·?????????????????Щ????У????????????????????д???????д?????????????????DHCP???????IP????????????????????????DHCP???????????????????????????IP?????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11