본문 바로가기

Linux/CentOS7

Configure IP and Gateway

1. Verify attached interfaces

# ip link


2. Link up and configure ip address

# ip link set eno33554984 up

# ip addr add 10.1.1.1/24 dev eno33554984


3. Configure a default gateway

# ip route add 0.0.0.0/0 via 10.1.1.254