All pastes #918660 Raw Edit

Anonymous

public text v1 · immutable
#918660 ·published 2008-02-26 08:20 UTC
rendered paste body
ifconfig configure
[root@localhost ~]# ifconfig eth0:0 192.168.1.224 netmask 255.255.255.0
[root@localhost ~]# ip route show table local
broadcast 127.255.255.255 dev lo  proto kernel  scope link  src 127.0.0.1
local 192.168.1.224 dev eth0  proto kernel  scope host  src 192.168.1.222
broadcast 192.168.1.255 dev eth0  proto kernel  scope link  src 192.168.1.222
local 192.168.1.222 dev eth0  proto kernel  scope host  src 192.168.1.222
broadcast 127.0.0.0 dev lo  proto kernel  scope link  src 127.0.0.1
local 127.0.0.1 dev lo  proto kernel  scope host  src 127.0.0.1
local 127.0.0.0/8 dev lo  proto kernel  scope host  src 127.0.0.1
[root@localhost ~]#


ip address configure
[root@localhost ~]# ip address add 192.168.1.224/16 brd + dev eth0 label eth0:0
[root@localhost ~]# ip route show table local
broadcast 127.255.255.255 dev lo  proto kernel  scope link  src 127.0.0.1
local 192.168.1.224 dev eth0  proto kernel  scope host  src 192.168.1.224
broadcast 192.168.255.255 dev eth0  proto kernel  scope link  src 192.168.1.224
broadcast 192.168.0.0 dev eth0  proto kernel  scope link  src 192.168.1.224
broadcast 192.168.1.255 dev eth0  proto kernel  scope link  src 192.168.1.222
local 192.168.1.222 dev eth0  proto kernel  scope host  src 192.168.1.222
broadcast 127.0.0.0 dev lo  proto kernel  scope link  src 127.0.0.1
local 127.0.0.1 dev lo  proto kernel  scope host  src 127.0.0.1
local 127.0.0.0/8 dev lo  proto kernel  scope host  src 127.0.0.1
[root@localhost ~]#