버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

...

코드 블럭
title/etc/sysconfig/network-scripts/ifcfg-eth0
linenumberstrue
BOOTPROTO=none
DEFROUTE=yes
DEVICE=eth0
DNS1=8.8.8.8
GATEWAY=10.0.10.1
IPADDR=10.0.10.5
PREFIX=24
# PREFIX 대신 NETMASK 로도 설정 가능 
# NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
MTU=9000

ifcfg-eth1

코드 블럭
title/etc/sysconfig/network-scripts/ifcfg-eth1
linenumberstrue
BOOTPROTO=none
DEFROUTE=no
DEVICE=eth1
GATEWAY=10.0.20.1
IPADDR=10.0.20.5
PREFIX=24
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
MTU=9000

ifcfg-eth2

코드 블럭
title/etc/sysconfig/network-scripts/ifcfg-eth2
linenumberstrue
BOOTPROTO=none
DEFROUTE=no
DEVICE=eth1
GATEWAY=10.0.30.1
IPADDR=10.0.30.5
PREFIX=24
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
MTU=9000

route-eth1

코드 블럭
title/etc/sysconfig/network-scripts/route-eth1
linenumberstrue
192.168.20.0/24 via 10.0.20.1 dev eth1

...

코드 블럭
linenumberstrue
# ip addr
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP group default qlen 1000
    inet 13410.750.24810.2505/24 brd 13410.750.24810.255 scope global noprefixroute eth0
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP group default qlen 1000
    inet 13410.750.20720.2505/24 brd 13410.750.20720.255 scope global noprefixroute eth1
       valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP group default qlen 1000
    inet 10.0.30.5/24 brd 10.0.30.255 scope global noprefixroute eth2
       valid_lft forever preferred_lft forever

...