Linux?????????IP??????
???????????? ???????[ 2014/10/17 14:56:46 ] ?????????????? Linux ????
???????????????????
????1) /etc/sysconfig/network ???????????????????Network
????2) /etc/sysconfig/network-scripts/ifcfg-eth0 ?????????????????
????3) /etc/modprobe.conf ????????????ü?????????????
????4) /etc/resolv.conf ????DNS IP???????????????????
????5) /etc/hosts ????????IP??????????????????????
????6) /etc/protocols ????IP?????Э???????????????ICMP??TCP??????????Э???????
????????????????????
????1??/etc/init.d/network restart ????????????????????
????2??ifup eth0(ifdown eth0) ??????????????????????????????script?????????????script????????/etc/sysconfig/network-scripts/????
????·ifconfig ???????????????IP???ε???????
????·ifup/ifdown ???/?????????
????????IP???????????
????1??????????????
??????????????????????????Ч????????Ч
????#ifconfig ethX ip/netmask
????# ifconfig eth0 192.168.100.1 ????eth0??IP
????# ifconfig eth0 192.168.100.1 netmask 255.255.255.0 > mtu 8000 ???????????????????MTU???
????2?? ??ν????????
????system-config-network-gui
????system-config-network-tui
????????setup??????????ν??棨?????豸IP??????????????system-config?е???????????????У??????????????????????????????????????????????????????????ν??棬????????“export LANG=en”?????????ν??棬?????????????
??????????ν??棬???“Network configuration”
?????????????????“Ok”??“Save”??“Save&Quit”??“Quit”????????????????ɡ????????????????Ч???????Ч???????Ч????IP??Ч???????????
????1. #ifdown eth1 && ifup eth1 ????????????
????2. #service network restart ???????????
????3. #/etc/init.d/network restart ???????????????
????3???????????????
????#vim /etc/sysconfig/network-scripts/ifcfg-ethX
???????????????????????????????е??????????У?
????DEVICE=ethX ?豸??
????BOOTPROTO=(none | static????????????? | dhcp?????????? | bootp)
????ONBOOT={yes | no} ?????????????豸???????
????HWADDR= ?????????????????
????IPADDR= IP?????????
????NETMASK= ????????????
????TYPE=Ethernet ????????????????????????
??????????????У?
????GATEWAY= ????
????USERCTL={yes | no} ????????????????ú?????????豸
????PEERDNS={yes | no} ?????dhcp?????????????????????IP????????????????DNS?????????????yes??
???????????????????Ч???????Ч???????Ч????IP??Ч??????????????????????
????1. #ifdown eth1 && ifup eth1 ????????????
????2. #service network restart ???????????
????3. #/etc/init.d/network restart ???????????????
??????
???·???
??????????????????
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