[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:51510] Re: How to setup PRIVATE IP addres with DHCP address ?
At Sat, 3 Jan 2009 09:07:38 +0900,
tanimura wrote:
>
> DHCP ã¨ä¸¦å˜ã—㦠private IP address ã‚’è¨å®šã™ã‚‹æ–¹æ³•ã‚’ãŠæ•™ãˆãã ã•ã„。
>
> ç¾åœ¨ã®ç’°å¢ƒã¯
> NTT西日本ã®ãƒ•ãƒ¬ãƒƒãƒ„光プレミアム(マンションタイプ)ã«åŠ å…¥ã—ã¦ã„ã¾ã™ã€‚
> NTT ã®çµ‚端端末(CTU) 2004W{S} ã®åŸºã« HUB を通ã˜ã¦
> Linux Debian (Etch) æ•°å°ãŒç¨¼å‹•ã—ã¦ã„ã¾ã™ã€‚
>
> IP address 㯠NTT ã® CTU ã® DHCP ã§è‡ªå‹•çš„ã«å‰²ã‚Šå½“ã¦ã‚‰ã‚Œã¾ã™ã€‚
> 有線LANã®å ´åˆã¯ 192.168.xx.yy ã«ãªã‚Šã¾ã™ã€‚
>
> SSH 㧠remote host ã«ã€ã“ã® IP を指定ã™ã‚‹ã¨ logon å¯èƒ½ã§ã™ãŒã€
> 毎回 dynamic address を確èªã™ã‚‹æ‰‹é–“ã‚’çœããŸã„ã®ã§
> hostname ã« private IP address (172.16.aa.bb ...)
> ã®è¨å®šã‚’試ã¿ã¾ã—ãŸãŒã†ã¾ãã„ãã¾ã›ã‚“。
>
> === /etc/netowrk/interface
> auto lo
> iface lo inet loopback
>
> allow-hotplug eth0
> iface eth0 inet dhcp
>
> ### 以下を追åŠ
> auto eth0 << 削除ã—ã¦ã‚‚ error
> iface eth0 inet static
> address 172.1.aa.bb
> netmask 225.225.225.0
> broadcast 172.16.aa.255
> gateway 192.168.xx.1 << route ã«ã‚ˆã‚‹è¡¨ç¤º
> ### è¿½åŠ ã“ã“ã¾ã§ã€‚
>
> 確èªã®ãŸã‚ã«
> # ifdown eth0 
> を実行ã—ã¾ã™ã¨ã€"duplicate" error ã¨ãªã‚Šã¾ã™ã€‚
>
> å…¶ã®ä»–ç¾åœ¨ã¾ã§ã«è©¦ã¿ãŸè¨å®šã¯
> /etc/hostname <my host name>
> /etc/hosts <172.16.aa.bb> << 追åŠ
> /etc/hosts.allow <ssh 192.168> <ssh 127.16>
> /etc/hosts.deny
> /etc/resolve.conf <nameserver 192.168.24.1> << route ã«ã‚ˆã‚‹è¡¨ç¤º
> ç‰ãªã©ã§ã™ã€‚
>
> 訂æ£å€‹æ‰€ã®æŒ‡æ‘˜åˆã¯ alternative suggestion ã‚’ãŠé¡˜ã„ã„ãŸã—ã¾ã™ã€‚
avahi ?
> 以上