1. default gateway
- default gateway를 잘 못 설정하면 네트워크가 안 될 수 있음
- 확인 방법
# netstat -rn
# route
# ip route
2. 임시적용
# route add default gw [게이트웨이주소] [장치명]
-> route add default gw 192.168.56.1 eth1
3. 영구적용
# echo 'GATEWAY=게이트웨이주소' >> /etc/sysconfig/network
# service network restart
* 설정이 안 먹을 경우 ~/ifcfg-eth0 등에 METRIC 설정을 해주면 된다고 함
http://initium2017.blogspot.com/2017/03/centos-default-gateway.html
'Linux' 카테고리의 다른 글
[Linux] CentOS repository 설정 (0) | 2020.05.21 |
---|---|
[Linux] CentOS NTP 설정 (0) | 2020.04.21 |
[Linux] CentOS7 ssh 포트 변경 (0) | 2020.03.17 |
[Linux] shutdown, reboot 명령어 (0) | 2020.03.16 |
[Linux] CentOS 부팅시 데몬 시작하기, chkconfig (0) | 2020.03.14 |