You can set it up just like a "normal" ethernet interface
modprobe and set up network address of dummy interface:
Code:
[root@tower20 etc]# modprobe dummy
[root@tower20 etc]# ifconfig dummy0 192.168.2.10
add routing, check network binding and route commands:
Code:
[root@tower20 etc]# route add 192.168.2.10 dummy0
[root@tower20 etc]# ifconfig dummy0
dummy0: flags=195<UP,BROADCAST,RUNNING,NOARP> mtu 1500
inet 192.168.2.10 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::6c21:16ff:feac:cc09 prefixlen 64 scopeid 0x20<link>
ether 6e:21:16:ac:cc:09 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3 bytes 210 (210.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@tower20 etc]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default dslrouter 0.0.0.0 UG 0 0 0 p33p2
192.168.1.0 * 255.255.255.0 U 0 0 0 p33p2
192.168.2.0 * 255.255.255.0 U 0 0 0 dummy0
tower20.home * 255.255.255.255 UH 0 0 0 dummy0
You would probably also wish to add the address to your /etc/hosts file as well.