Hi,
Using OpenBSD 6.4 and I wanted to run some alias ip addresses on one of the
interfaces.
My question is, can I use a different network as an alias?
Example:
fw3# more hostname.bge0
inet 10.2.0.1 255.255.0.0
inet alias 10.2.1.1 255.255.255.255
inet alias 10.2.2.1 255.255.255.255
inet alias 10.2.4.1 255.255.255.255
inet alias 10.2.6.1 255.255.255.255
inet alias 172.17.11.1 255.255.255.255
I am having a problem pinging on the 172.17.11.0 network.
Ping 172.17.11.1
Responds, but nothing else on the network.
I saw one thing on the internet that said 'alias' has to be on the same
network, but this was not specific as far as age and what operating system.
To me a router, routes.
Any clarification or better way to handle this would be appreciated.
Thanks in advance,
Victor
Here is the routing table (with public ip and mac addresses changed or
obscured):
fw3# route -n show
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Prio Iface
default x.x.x.109 UGS 261 23105124 - 8 dc0
224/4 127.0.0.1 URS 0 0 32768 8 lo0
10.2/16 10.2.0.1 UCn 31 3623 - 4 bge0
10.2.0.1 00:16:41:ed:dd:47 UHLl 0 26952 - 1 bge0
10.2.1.1 00:16:41:ed:dd:47 UHLl 0 175419 - 1 bge0
10.2.1.1/32 10.2.1.1 UCn 0 0 - 4 bge0
10.2.1.11 b4:fb:e4:2c:5b:4d UHLc 0 249998 - 3 bge0
10.2.1.200 e8:36:17:6e:89:67 UHLc 0 3730 - 3 bge0
10.2.1.207 d0:d2:b0:0c:b9:41 UHLc 0 149944 - 3 bge0
10.2.1.208 38:89:2c:dd:5c:37 UHLc 0 179441 - 3 bge0
10.2.1.213 34:08:bc:be:3f:c6 UHLc 0 39991 - 3 bge0
10.2.1.217 4c:57:ca:08:33:c8 UHLc 0 6704 - 3 bge0
10.2.1.221 b0:c0:90:4b:8c:f8 UHLc 1 1299001 - 3 bge0
10.2.1.226 78:8a:20:d6:e7:b8 UHLc 0 3626 - 3 bge0
10.2.1.243 64:c7:53:aa:68:85 UHLc 0 3720 - 3 bge0
10.2.1.245 28:ff:3c:52:6a:51 UHLc 0 171234 - 3 bge0
10.2.2.1 00:16:41:ed:dd:47 UHLl 0 46132 - 1 bge0
10.2.2.1/32 10.2.2.1 UCn 0 0 - 4 bge0
10.2.2.21 ec:b1:d7:f3:09:a9 UHLc 1 252761 - 3 bge0
10.2.2.31 ac:1f:6b:96:38:96 UHLc 1 11629 - 3 bge0
10.2.2.61 9c:93:4e:5c:b7:9e UHLc 0 120968 - 3 bge0
10.2.2.62 9c:93:4e:2d:87:1f UHLc 0 3833 - 3 bge0
10.2.2.101 18:60:24:e3:eb:a1 UHLc 0 1872476 - 3 bge0
10.2.2.102 18:60:24:e3:f4:80 UHLc 0 5944221 - 3 bge0
10.2.2.103 18:60:24:e3:f3:99 UHLc 0 409286 - 3 bge0
10.2.2.104 18:60:24:e3:fb:97 UHLc 0 1452694 - 3 bge0
10.2.2.105 64:51:06:2b:ba:8b UHLc 0 559768 - 3 bge0
10.2.2.106 18:60:24:e3:f1:d2 UHLc 0 150568 - 3 bge0
10.2.2.107 64:51:06:2b:74:a3 UHLc 0 406897 - 3 bge0
10.2.2.108 18:60:24:e3:e0:63 UHLc 0 1759000 - 3 bge0
10.2.2.150 00:0b:82:c1:04:fb UHLc 0 20780 - 3 bge0
10.2.2.155 00:0b:82:d0:28:0c UHLc 0 3730 - 3 bge0
10.2.2.157 00:0b:82:d0:28:00 UHLc 0 3729 - 3 bge0
10.2.2.158 00:0b:82:d2:a9:aa UHLc 0 3729 - 3 bge0
10.2.2.255 link#1 UHLc 0 3671 - 3 bge0
10.2.4.1 00:16:41:ed:dd:47 UHLl 0 75492 - 1 bge0
10.2.4.1/32 10.2.4.1 UCn 0 0 - 4 bge0
10.2.4.101 6c:62:6d:93:1e:66 UHLc 1 2203177 - 3 bge0
10.2.4.102 c8:60:00:75:f3:d1 UHLc 0 15808 - 3 bge0
10.2.4.103 bc:ae:c5:e2:15:eb UHLc 0 95620 - 3 bge0
10.2.4.255 link#1 UHLc 0 3635 - 3 bge0
10.2.6.1 00:16:41:ed:dd:47 UHLl 0 0 - 1 bge0
10.2.6.1/32 10.2.6.1 UCn 0 0 - 4 bge0
10.2.255.255 10.2.0.1 UHb 0 1288 - 1 bge0
x.x.x.108/28 x.x.x.113 UCn 2 362071 - 4 dc0
x.x.x.109 54:39:69:1f:23:7c UHLch 1 190137 - 3 dc0
x.x.x.110 00:22:55:69:24:59 UHLc 1 361719 - 3 dc0
x.x.x.113 00:24:e2:3f:ac:54 UHLl 0 195942 - 1 dc0
x.x.x.123 x.x.x.113 UHb 0 0 - 1 dc0
127/8 127.0.0.1 UGRS 0 0 32768 8 lo0
127.0.0.1 127.0.0.1 UHhl 2 149 32768 1 lo0
172.17.11.1 00:16:41:ed:dd:47 UHLl 0 1116 - 1 bge0
172.17.11.1/32 172.17.11.1 UCn 0 0 - 4 bge0
Internet6:
Destination Gateway Flags Refs
Use Mtu Prio Iface
::/96 ::1 UGRS 0
0 32768 8 lo0
::1 ::1 UHhl 10
20 32768 1 lo0
::ffff:0.0.0.0/96 ::1 UGRS 0
0 32768 8 lo0
2002::/24 ::1 UGRS 0
0 32768 8 lo0
2002:7f00::/24 ::1 UGRS 0
0 32768 8 lo0
2002:e000::/20 ::1 UGRS 0
0 32768 8 lo0
2002:ff00::/24 ::1 UGRS 0
0 32768 8 lo0
fe80::/10 ::1 UGRS 0
0 32768 8 lo0
fec0::/10 ::1 UGRS 0
0 32768 8 lo0
fe80::1%lo0 fe80::1%lo0 UHl 0
0 32768 1 lo0
ff01::/16 ::1 UGRS 0
0 32768 8 lo0
ff01::%lo0/32 fe80::1%lo0 Um 0
1 32768 4 lo0
ff02::/16 ::1 UGRS 0
0 32768 8 lo0
ff02::%lo0/32 fe80::1%lo0 Um 0
1 32768 4 lo0
fw3#