Sorry, i was having trouble with this subject on a new machine. But that seemed 
to be related to this: 

https://github.com/joyent/smartos-live/issues/235

 

since it now works by attaching a DHCP server to this nic I will update this 
thread with answers to myself. 

 

So for a new nic with MAC address fc:15:b4:0f:2f:59 add the following to 
/usbkey/config

test_nic=fc:15:b4:0f:2f:59

test0_ip=dhcp

test0_netmask=...

 

In the zone config json file you can use :

"nics": [

  {

    "nic_tag": "test",

    "ip": "dhcp"

  }

]

 

 

Van: the outsider [mailto:[email protected]] 
Verzonden: donderdag 3 november 2016 12:01
Aan: [email protected]
Onderwerp: RE: [smartos-discuss] Additional network interface in global zone

 

Additional question to this thread:

1.       What names are allowed for additional nics? 

2.       If the additional doesn’t need an IP-address in the Global zone, how 
to set that up? 

3.       If I name this additional nic “test” , what name do I need to use for 
the zone setup? “test” or “test0”

 

I don’t want to highjack this thread but I thought it would be better to join 
all these question into 1 thread for future reference. 

 

 

 

Van: Tiraen [mailto:[email protected]] 
Verzonden: donderdag 3 november 2016 2:11
Aan: [email protected] 
<mailto:[email protected]> 
Onderwerp: [smartos-discuss] Additional network interface in global zone

 

Good evening, ask this question, of nowhere, in fact, but all the same:

There are, for example, multiple servers with OS standing the LAN. 

Each, as it should be the two network interfaces

For example:

[root@satest /usbkey]# dladm show-phys -m

LINK         SLOT     ADDRESS            INUSE CLIENT

rge0         primary  a0:f3:c1:10:66:8f  yes  rge0

bge0         primary  d4:ae:52:d2:4c:ef  yes  bge0



1) Global Interface

  "Network Interfaces": {

    "rge0": {"MAC Address": "a0:f3:c1:10:66:8f", "ip4addr": "IP here", "Link 
Status": "up", "NIC Names": ["admin"]},

With this all clear

2) When I, according to the documentation:

https://wiki.smartos.org/display/DOC/Managing+NICs

trying to assign the address of the second network card, writing settings in 
/usbkey/config

That's the way:

external_nic=d4:ae:52:d2:4c:ef

external0_ip=10.21.1.200

external0_netmask=255.255.254.0

external0_network=

external0_gateway=10.21.1.254


After the reboot, I get the following:

external0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3

        inet 10.21.1.200 netmask fffffe00 broadcast 10.21.1.255

        ether 2:8:20:36:bf:1d

 

    "bge0": {"MAC Address": "d4:ae:52:d2:4c:ef", "ip4addr": "", "Link Status": 
"up", "NIC Names": ["external"]}

  },

  "Virtual Network Interfaces": {

    "external0": {"MAC Address": "02:08:20:36:bf:1d", "ip4addr": "10.21.1.200", 
"Link Status": "up", "Host Interface": "bge0", "VLAN": "0"}

 

That is logical, but this address is not available from the local network in 
general




[root@gw /usr/home/admin]# ping 10.21.1.200

PING 10.21.1.200 (10.21.1.200): 56 data bytes

^C

--- 10.21.1.200 ping statistics ---

4 packets transmitted, 0 packets received, 100.0% packet loss

 

Actually two questions:

1) What have I missed why not see the LAN

2) How can I re-read the configuration /usbkey/config without rebooting the 
host?

-- 

With best regards,

Vyacheslav Yakushev,

Unix system administrator


smartos-discuss |  <https://www.listbox.com/member/archive/184463/=now> 
Archives  <https://www.listbox.com/member/archive/rss/184463/27966043-4eecc9e4> 
|  <https://www.listbox.com/member/?&;> Modify Your Subscription

 <http://www.listbox.com> 

 




-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to