Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[ Prefix = 24 ] == [ Netmask 255.255.255.0 ]

InterfaceIPGatewayPrefixDefault RouteNote
eth010.0.10.510.0.10.124Y주로 사용되는 네트워크 인터페이스
eth110.0.20.510.0.20.124N
eth210.0.30.510.0.30.124N

Route

RouteGatewayInterfaceNote
default10.0.10.1eth0다음에 언급되지 않은 IP 와는
eth0 를 통해 통신이 된다는 의미임
10.0.20.0/2410.0.20.1eth1
10.0.30.0/2410.0.30.1eth2
192.168.20.0/2410.0.20.1eth1IP 가 192.168.20.0/24
( 192.168.20.1 ~ 255 )인 경우 
eth1 를 통해 통신이 된다는 의미임
192.168.30.0/2410.0.30.1eth2

(참고) ifcfg → NetworkManager 마이그레이션

...

코드 블럭
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

...