temporary Ip address
how to add temporary ip address? right now
Quote:
Quote:
|
Copy ifcfg-eth0 to ifcfg-eth0:0 and change the ip address. Then run ifup eth0:0
|
The syntax is different when using the ip versus ifconfig commands. You can add multiple addresses without them being an "alias". Since eth0 was not shown in the output of the ifconfig is it enabled? You can add a temp address like below. Change the numbers to match your network.
ip addr add 192.168.0.2/24 brd 192.168.0.255 dev eth0 To see eth0:0 when using the ifconfig command: ip addr add 192.168.0.2/24 brd 192.168.0.255 dev eth0 label eth0:0 |
thanks to everyone.
i solved it by just changing eth0:0 to eth1:0. because my primary ip interface is on eth1 so i can use eth1:0 to eth1:1, eth1:2, eth1:3. like this Quote:
|
All times are GMT -5. The time now is 04:40 AM. |