Skip to content

Commit

Permalink
small format fix2
Browse files Browse the repository at this point in the history
  • Loading branch information
IlirEdis committed Jul 3, 2023
1 parent 2a42ea1 commit ef81dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion additional-ip-in-linux.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ you want to add the secondary IP of 192.168.1.2 as follows

auto eth0 iface eth0 inet static address 192.168.1.1 netmask 255.255.255.0 gateway 192.168.1.254 post-up ip a a 192.168.1.2/24 dev eth0 pre-down ip a d 192.168.1.2/24 dev eth0

After editing, run the command **sudo ifup eth0:0** to activate the new interface.
After editing, run the command `sudo ifup eth0:0` to activate the new interface.

#### Adding an IP address in CentOS

Expand Down

0 comments on commit ef81dfd

Please sign in to comment.