Hello Edgar,

On 01/02/15(Sun) 10:01, Edgar Pettijohn wrote:
> 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 :).
> 
> 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
> 
> # 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

It seems that your two gateways (108.61.222.1 and 104.238.144.1) correspond
to the same Ethernet address.

You're seeing this message because you configured your addresses on two
different interfaces.  Configuring both of them on vio0 should solve
your problem.

Reply via email to