freebsd 네트워크 설정
bsd 계열의 네트워크 설정은 /etc/rc.conf 에서 이루어 진다. # -- sysinstall generated deltas -- # Wed Apr 17 20:52:04 2013 # Created: Wed Apr 17 20:52:04 2013 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter="192.168.229.2" hostname="localhost.domain" ifconfig_em0="inet 192.168.229.111 netmask 255.255.255.0" keymap="us.iso" linux_enable="YES" sshd_enable="YES" usbd_enable="YES" 다음 명령어로 네트워크를 시작 한다. localhost# /etc/netstart devd already running? (pid=461). lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.229.111 netmask 0xffffff00 broadcast 192.168.229.255 ether 00:0c:29:8b:91:ce media: Ethernet autoselect (1000baseTX <full-duplex>) status: active add net default: gateway 192.168.229.2 Additional routing options:. 일반적인 리눅스와 같은 방식으로 네트워크를 확인 가능하다. localhost# ifconfig em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.229.111 netmask 0xffffff00 broadcast 192.168.229.255 ether 00:0c:29:8b:91:ce media: Ethernet autoselect (1000baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 DNS 설정 또한 일반 리눅스 계열과 동일하다. localhost# vi /etc/resolv.conf domain domain nameserver 8.8.8.8 |
반응형
'System > Linux' 카테고리의 다른 글
cent os local_port_range 확장 (0) | 2016.03.12 |
---|---|
Telegram_cli를 이용한 centos cil 메신저 이용하기 (0) | 2016.03.03 |
ModSecurity (owasp core rule) setting (0) | 2015.05.27 |
centos nat lvs구성 (0) | 2015.05.27 |
geo-ip setting (0) | 2015.05.27 |