본문 바로가기

OLD4

[CentOS] DNS 설정 보통 /etc/resolve.conf 파일의 내용을 수정하여 DNS를 설정 ex) [root@localhost etc]# vi resolv.conf 1 2 3 # Generated by NetworkManager nameserver 168.126.63.1 nameserver 168.126.63.2 [root@localhost ~]# /etc/rc.d/init.d/network restart network 재시작을 하고나서 dns를 못찾는 것을 확인하고, [root@localhost ~]# ping www.google.com ping: unknown host www.google.com resolv.conf 파일의 내용을 다시 보면 다음과 같다 1 2 3 4 5 6 7 8 9 # Generated by Ne.. 2014. 3. 9.
[CentOS] 네트워크 인터페이스 설정 [root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 DEVICE=eth0 TYPE=Ethernet UUID=6437e7ce-8f1c-40fd-9f41-462ff3c2f727 ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=static IPADDR=192.168.219.219 GATEWAY=192.168.219.1 NETMASK=255.255.255.0 DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME="System eth0" HWADDR=00:16:EC:17:BA:06 PEERDNS=yes PEERROUTE.. 2014. 3. 9.
[FreeBSD] 인터페이스 설정 Interface configuration /etc/rc.conf 1 # -- sysinstall generated deltas -- # Fri Aug 9 16:39:00 2013 2 # Created: Fri Aug 9 16:39:00 2013 3 # Enable network daemons for user convenience. 4 # Please make all changes to this file, not to /etc/defaults/rc.conf. 5 # This file now contains just the overrides from /etc/defaults/rc.conf. 6 defaultrouter="192.168.123.1" 7 hostname="free" 8 ifconfig_re0=.. 2013. 10. 21.
[Ubuntu] 우분투 IPv6라우터로 사용하기. How to Set Router on Ubunt InitialConfiguration Environment etc/network/interfaces 파일을 수정하여 인터넷 환경을 구성한다. 1 # eth0 2 auto eth0 3 iface eth0 inet static 4 address 192.168.123.188 5 netmask 255.255.255.0 6 gateway 192.168.123.1 7 broadcast 192.168.123.255 /etc/resolv.conf 파일의 다음을 추가하여 DNS설정을 한다. 1 nameserver 168.126.63.1 2 nameserver 8.8.8.8 다음을 실행하여 네트워크 재시작을 한다. 1 sudo /etc/ini.d/networking rest.. 2013. 10. 21.