I am trying to add a second ip to my openbsd5.6 vultr.com server. I thought it would be as simple as:

/etc/hostname.vio1
104.238.145.48 255.255.254.0
!route add 104.238.145/23 104.238.144.1

They claim to be assigning me ip 104.238.145.48 netmask 255.255.254.0 with a gateway of 104.238.144.1. However, I am unable to ping 104.238.145.48. Any help is appreciated. I've read the following manuals hostname.if(5), route(8), and ifconfig(8) and tried several different approaches. I'm still learning so be gentle :).

# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
        priority: 0
        groups: lo
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet 127.0.0.1 netmask 0xff000000
vio0: flags=28843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6> mtu 1500
        lladdr 56:00:00:03:ef:10
        priority: 0
        groups: egress
        media: Ethernet autoselect
        status: active
        inet 108.61.222.55 netmask 0xffffff00 broadcast 108.61.222.255
vio1: flags=28843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6> mtu 1500
        lladdr 52:54:00:86:36:94
        priority: 0
        media: Ethernet autoselect
        status: active
        inet 104.238.145.48 netmask 0xfffffe00 broadcast 104.238.145.255
enc0: flags=20000<NOINET6>
        priority: 0
        groups: enc
        status: active
pflog0: flags=20141<UP,RUNNING,PROMISC,NOINET6> mtu 33144
        priority: 0
        groups: pflog

# route show
Routing tables

Internet:
Destination Gateway Flags Refs Use Mtu Prio Iface default 108.61.222.1 UGS 3 214 - 8 vio0 104.238.144/23 link#2 UC 1 0 - 4 vio1 104.238.144/23 104.238.144.1 UGS 0 0 - 8 vio1 104.238.144.1 link#2 UHLc 1 0 - 4 vio1 vpn.pettijohn-web. 52:54:00:86:36:94 UHLl 0 0 - 1 lo0 108.61.222/24 link#1 UC 2 0 - 4 vio0 108.61.222.1 74:8e:f8:48:67:80 UHLc 1 0 - 4 vio0 pettijohn-web.com 56:00:00:03:ef:10 UHLl 0 0 - 1 lo0 108.61.222.170.vul 52:54:00:cb:e8:f1 UHLc 0 0 - 4 vio0 loopback localhost UGRS 0 0 32768 8 lo0 localhost localhost UH 1 0 32768 4 lo0 BASE-ADDRESS.MCAST localhost URS 0 0 32768 8 lo0

# dmesg (is full of the following)
arp: attempt to add entry for 104.238.144.1 on vio1 by 74:8e:f8:48:67:80 on vio0

Reply via email to