On 1/22/15 0:07 , Lukas Kaltenbach via smartos-discuss wrote:
> Add:
> 
> My network config is correct, so the problem must be in the smartos
> config. But where?

Hi Lukas,

There are a few things here that seem a bit off. The first is that it
seems like you manually created the vnic0, vnic1, and vnic2, is that right?

The way that vmadm and SmartOS works is that it takes care of creating
and destroying the VNIC. Hence, why you se those net0 and net1 entries
that are in the zone. I'm not sure what you believe the 'physical'
property does in vmadm, but it's not a documented or supported property
in the manual page.

That said, there are a few things to do to look at this in more detail,
given that pfsense is on the scene. Here are some questions:

1) Can your pfsense VM which seems to be the gateway for the VMs on the
etherstub actually reach its gateway? If not, we should troubleshoot
that before anything else.

2) What are the networking assignments that your guests got for DHCP?

3) Can you ping your pfsense VM from them? If not, you should snoop on
the VNICs and see if they're making it there. eg. I would do something
like snoop -z <zone> -d <interface name> icmp. Basically, the question
is where are they making it to.

4) If you can ping the pfsense VM, then you'll want to validate that the
VM in question is performing NAT and other services correctly and see
that it can reach its Internet Gateway.

Robert

> Am 22.01.2015 um 09:03 schrieb Lukas Kaltenbach via smartos-discuss:
>> Hi SmartOS Community,
>>
>> I have a problem with using etherstubs and vnics.
>> I configured it like it was explained in several tutorials and howtos,
>> but it doesnt work. (No Ping, nothing.(Yea, Firewall on PFsense is
>> disabled for the Test))
>>
>> I created an etherstub with "/dladm create-etherstub vswitch0/" with
>> the following vnics:
>>
>> /[root@00-19-99-20-c1-37 ~]# dladm show-vnic//
>> //LINK         OVER       SPEED MACADDRESS        MACADDRTYPE VID  ZONE//
>> //vnic0        vswitch0   0     2:8:20:ed:34:1c   random 0    --//
>> //vnic1        vswitch0   0     2:8:20:26:67:53   random 0    --//
>> //vnic2        vswitch0   0     2:8:20:9f:76:f2   random 0    --//
>> //net0         bge0       0     a2:1b:92:58:74:57 fixed 0   
>> 00b969ba-332f-4444-83ab-9e87a16282a6//
>> //net1         vswitch0   0     d2:b1:26:aa:b5:8  fixed 0   
>> 00b969ba-332f-4444-83ab-9e87a16282a6//
>> //net0         vswitch0   0     42:42:67:71:92:d  fixed 0   
>> 53659df6-03d1-4441-af81-450d120b1a4a//
>> //net0         vswitch0   0     82:9a:7a:89:84:a1 fixed 0   
>> ea1f281b-17d5-45ef-9471-d9442a5471d3/
>>
>> 00b969ba-332f-4444-83ab-9e87a16282a6 is a Firewall (PFsense) with
>> following Config:
>> /[root@00-19-99-20-c1-37 ~]# cat /zones/json/pfsense.json//
>> //{//
>> //  "alias": "pfsense2",//
>> //  "hostname": "pfsense2",//
>> //  "brand": "kvm",//
>> //  "vcpus": 1,//
>> //  "autoboot": false,//
>> //  "ram": 1024,//
>> //  "disks": [//
>> //    {//
>> //      "boot": true,//
>> //      "model": "virtio",//
>> //      "size": 10240//
>> //    }//
>> //  ],//
>> //  "nics": [//
>> //    {//
>> //      "nic_tag": "admin",//
>> //      "model": "virtio",//
>> //      "ip": "dhcp",//
>> //      "allow_ip_spoofing": true,//
>> //      "primary":"1"//
>> //    },//
>> //    {//
>> //      "nic_tag": "vswitch0",//
>> //      "model": "virtio",//
>> //      "ip": "dhcp",//
>> //      "allow_ip_spoofing": true//
>> //    }//
>> //  ]//
>> //}//
>> /
>> 53659df6-03d1-4441-af81-450d120b1a4a is a Centos 6.6 Server with
>> following Config:
>> /[root@00-19-99-20-c1-37 ~]# cat /zones/json/centos6.6_1.json//
>> //{//
>> //  "alias": "centos6.6_1",//
>> //  "hostname": "centos6.6_1",//
>> //  "brand": "kvm",//
>> //  "vcpus": 1,//
>> //  "autoboot": false,//
>> //  "ram": 1024,//
>> //  "disks": [//
>> //    {//
>> //      "boot": true,//
>> //      "model": "virtio",//
>> //      "size": 4096//
>> //    }//
>> //  ],//
>> //  "nics": [//
>> //    {//
>> //      "nic_tag": "vswitch0",//
>> //      "interface": "vnic1",//
>> //      "physical": "vnic1",//
>> //      "model": "virtio",//
>> //      "ip": "dhcp",//
>> //      "primary": true//
>> //    }//
>> //  ]//
>> //}/
>>
>> ea1f281b-17d5-45ef-9471-d9442a5471d3 is a Centos 6.6 Server with
>> following Config:
>> /[root@00-19-99-20-c1-37 ~]# cat /zones/json/centos6.6_2.json//
>> //{//
>> //  "alias": "centos6.6_2",//
>> //  "hostname": "centos6.6_2",//
>> //  "brand": "kvm",//
>> //  "vcpus": 1,//
>> //  "autoboot": false,//
>> //  "ram": 1024,//
>> //  "disks": [//
>> //    {//
>> //      "boot": true,//
>> //      "model": "virtio",//
>> //      "size": 4096//
>> //    }//
>> //  ],//
>> //  "nics": [//
>> //    {//
>> //      "nic_tag": "vswitch0",//
>> //      "interface": "vnic2",//
>> //      "physical": "vnic2",//
>> //      "model": "virtio",//
>> //      "ip": "dhcp",//
>> //      "primary": true//
>> //    }//
>> //  ]//
>> //}/
>>
>>
>> *smartos-discuss* | Archives
>> <https://www.listbox.com/member/archive/184463/=now>
>> <https://www.listbox.com/member/archive/rss/184463/26903818-91ad5579>
>> | Modify <https://www.listbox.com/member/?&;> Your Subscription    
>> [Powered by Listbox] <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/21483261-4b78dd38
> Modify Your Subscription:
> https://www.listbox.com/member/?&;
> 
> Powered by Listbox: 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