Fedora 10 ã§IPaddressåºå®ã«ãããã¨ã
http://q.hatena.ne.jp/1228538689
Fedora 10 ã§ã¯ãããã¯ã¼ã¯ããNetwork Managerãã®é
ä¸ã«ãªãã
ä»ã¾ã§ããç¥ããã¦ããæ¹æ³ã§ã¯IPaddressãåºå®ã«ãããã¨ãã§ããªãã
ã¤ã³ã¹ãã¼ã«ç´å¾ã®/etc/sysconfig/network-scripts/ifcfg-eth0 ã¯
DEVICE=eth0
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=no
ã®ããã«ãªã£ã¦ããã¯ããå
¨é¨networkmanagerã®æ¯é
ä¸ã«ãã£ã¦ãDHCPã§ããããonbootã¯ç¡è¦ã
ãããã以ä¸ã®ããã«æ¸ãæããã
DEVICE=eth0
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
PEERDNS=yes
IPV6INIT=no
NM_CONTROLLED=yes
TYPE=Ethernet
DNS1=192.168.0.1
NETMASK=255.255.255.0
IPADDR=192.168.0.XXX
GATEWAY=192.168.0.1
大æåã»å°æåãééãã¦ã¯ãããªããyes ã YES ã¨æ¸ãã ãã§ã¢ã¦ãã
æ¸ãæããç¬éã«ä¸ç¬ããããè½ã¡ã¦ãæ°ããã¢ãã¬ã¹ã§ã®æ¥ç¶ãå§ã¾ãã¯ãã
Fedora 10 å®æ©ã«ã¦ç¢ºèªãã¿
- PEERDNS,DNS1,DNS2,DOMAIN
PEERDNS=yes (ã³ã¼ãä¸ã¯!noã§ããã°ãªãã§ããã)ã¨ãã¦ããã¨ã
DNS1,DNS2,DOMAINã®è¨è¿°ãã²ãã£ã¦ãinterface ã® up/down æ¯ã« resolv.conf ãæ¸ãæããã
/etc/resolv.conf ãããã£ã¦ã»ãããªã人㯠PEERDNS=noã«ãã¦ããã¨ããã
ãã¡ãã interface ã down ã«ããã¨å¾©å
ãããã ãã©ãè¤æ°ã®interfaceãããã£ã¦ãã¨ã
ãã¾ãåä½ããªãã
- NM_CONTROLLED
yesã«ãã¦ããã¨ãNetwork manager ã¨ãã¾ããã£ã¦ãããã
(noã ã¨network managerããè¦ããªããªãã®ã§ãinterfaseãupãã¦ããã®ã«downã !ã¨NMãæãã)
- USERCTL
yesã ã¨ã¦ã¼ã¶ã¼æ¨©éã§ã¤ã³ã¿ã¼ãã§ã¼ã¹ãããããããã«ãªãã(ãã¶ã)
ç¡ç·LANã§æ¥ç¶å
ã«å¿ãã¦wep keyãæå
¥ãããããã®ã«ä½¿ãã®ããªã
- ONBOOT
ã·ã¹ãã èµ·åæã«interfaceãããããã©ããã
- NETMASK/IPADDR/GATEWAY
ãã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ã«åºæã®ãããã¯ã¼ã¯æ å ±
- DEVICE
ã¤ã³ã¿ã¼ãã§ã¼ã¹å
- HWADDR
mac address
- BOOTPROTO
bootp,dhcp ã¾ãã¯ãã以å¤ã(使ããªããªãnoã«ãã¦ããã®ãç¡é£)
ããã«ããããã®ä»¥å¤ã«ifcfg-xxx ã«è¨è¿°ã§ããããªãã®
- BOOTP
yesã«ããã¨ãBOOTPROTO=bootpãã»ãããããã
以ä¸æªèª¿æ»ãã ã£ã¦ã½ã¼ã¹èªãã®ãé¢åã
- VLAN
- REALDEVICE
- TYPE
- DELAY
- CGINT
- STP
- MTU
- SLAVE
- BONDING_OPTS
- LINKDELAY
- ETHTOOL_OPT
- DHCP_HOSTMAE