Linux/CentOS7

Configure IP and Gateway

장성한군사 2017. 8. 23. 16:15

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