EdgeRouter - 인터페이스를 설정하는 방법 ============================================ download at 2017-08-25T17:59:45Z `origin `_ Overview -------- -------------- 이 문서는 라우터의 인터페이스를 설정하는 방법에 대하여 서술합니다. 설정하는 방법은 두가지 파트로 구성되어 있습니다: - IP주소와 서브넷 마스크를 할당하는 부분 - 설명을 입력하는 부분 Steps ----- -------------- \ **set**, \ **compare**, \ **commit**, \ **save** 명령어를 사용합니다. 인터페이스를 설정하기 위해서는 \ **set** 명령어를 사용합니다:   :: ubnt@ubnt:~$ configure [edit] 가능한 eth0의 주소를 확인하기 위해서는 \ **set interfaces ethernet eth0 address** 를 입력하고 \ **?** 키를 눌러보십시오.   :: ubnt@ubnt# set interfaces ethernet eth0 address Possible completions: IP address and prefix length IPv6 address and prefix length dhcp Dynamic Host Configuration Protocol dhcpv6 Dynamic Host Configuration Protocol for IPv6 [edit] ubnt@ubnt# set interfaces ethernet eth0 address 10.1.1.80/23 [edit] ubnt@ubnt# set interfaces ethernet eth0 description "production LAN" [edit] 위의 변경 사항은 현재 작업중인(실제 적용되지 않은) 환경 설정에도 영향이 있습니다. 현재 작업중인 환경설정에 어떤 변화가 생겼는지 확인하기 위해서는 \ **compare** 명령어를 사용하십시오:   :: ubnt@ubnt# compare [edit interfaces ethernet eth0] +address 10.1.1.2/24 +description "production LAN" [edit] 변경사항을 활성화 하기 위해서는 \ **commit** 명령을 사용합니다:   :: ubnt@ubnt# commit [edit] EdgeRouter를 재부팅하면 변경 사항을 잃어버리게 됩니다. 변경 사항을 저장하기 위해서는 \ **save** 명령을 사용하여 환경 설정이 부팅 환경 설정에 저장되도록 할 수 있습니다.   :: ubnt@ubnt# save Saving configuration to '/config/config.boot'... Done [edit] ubnt@ubnt# exit exit ubnt@ubnt:~$ ubnt@ubnt:~$ show interfaces Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down Interface IP Address S/L Description --------- ---------- --- ----------- eth0 10.1.1.80/23 u/u production LAN eth1 - u/D eth2 - u/D eth3 - u/D eth4 - u/D eth5 - u/D eth6 - u/D lo 127.0.0.1/8 u/u  ::1/128 ubnt@ubnt:~$ ping 10.1.0.1 PING 10.1.0.1 (10.1.0.1) 56(84) bytes of data. 64 bytes from 10.1.0.1: icmp_req=1 ttl=64 time=0.460 ms 64 bytes from 10.1.0.1: icmp_req=2 ttl=64 time=0.407 ms ^C --- 10.1.0.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.407/0.433/0.460/0.033 ms