gemelen: (Default)
Main doc + leased /56 from ovh:
# ipadm create-addr -t -T addrconf <nic>/v6a
# ipadm create-addr -t -T static -a <ipv6-address>/56 <nic>/v6s
# route add -inet6 default <your-ipv6-zone + FF octets> // in my case 2001:41d0:a:2dff:ff:ff:ff:ff
gemelen: (Default)
As usually, solution was simplier than I thought :)
1. Create zone with config like this:
{
  "brand": "joyent",
  ...
  "image_uuid": "87b9f4ac-5385-11e3-a304-fb868b82fe10",
  ...
  "nics": [
          {
            "physical": "net0",
            "nic_tag": "admin",
            "mac": "<virtual mac-addr>",
            "ip": "<failover-ip>",
            "netmask": "255.255.255.255",
            "gateway": "<failover-ip>",
            "primary": true
          }
  ],
  ...
}

2. zlogin and enter
   route add <server-ip three octets>.0/24 <failover-ip> -interface
   route add default <server-ip three octets>.254

3. After that our new zone is discoverable from internet.
gemelen: (Default)
Via
ovh docs,
smartos wiki
and search results.
1. Create "Virtual Mac" in web-manager (type doesnt matter) and assign obtained failover ip to it
2. Login and execute in global zone:
a. create vnic
  dladm create-vnic -m <virtual mac-addr> -l <real nic name> <new vnic name>

b. assign failover-ip
  ifconfig <new vnic name> plumb
  ifconfig <new vnic name> inet <failover-ip> netmask 255.255.255.255 broadcast <failover-ip> up

c. Add routes (in assume that default route already exists)
  route add <server-ip three octets>.0/24 <failover-ip> -interface -ifp <new vnic name>
  routeadm -e ipv4-forwarding
  routeadm -e ipv4-routing
  routeadm -u

4.[Optional] Persist configuration with some custom smf sciprts

Profile

gemelen: (Default)
gemelen

August 2017

M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031   

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 20th, 2017 23:10
Powered by Dreamwidth Studios