Re: [OmniOS-discuss] Zone network fails to work.

2016-09-15 Thread Andries Annema

Hi Richard,

About two years ago I bumped into the same, or at least a similar, 
problem on my brand new r151014 rig: the system was able to ping hosts 
on the same network segment, but a ping to my router/gateway resulted in 
"no answer from  / Unknown host".


In my notes from back then I find that I ended up in verifying the arp 
cache by entering:


# arp -a

The resulting list did not show the router, so I added it manually:

# arp -s  

A page that might shed some more light on the matter: 
https://www.petri.com/csc_arp_cache


I have no clue as to why a single host on the local network would not 
show up in that arp table while others would, but back then the above 
solved my problem. Haven't had the issue since then, so it might be 
worth giving it a try.
If it doesn't help you, then I hope someone who really knows the ins and 
outs of networking is listening in. :-)


Regards,
Andries


On 2016-09-12 22:35, Richard Skelton wrote:

Sorry in my haste I posted fred not fred5
See corrections below :-)

Richard Skelton wrote:

Hi,
I have a Sun X4170 with igb network.
I am using omnios-r151018-ae3141d
Here are my steps to create a zone called fred5 :-
dladm show-phys
LINK MEDIASTATE  SPEED  DUPLEXDEVICE
usbecm0  Ethernet down   10 full  usbecm0
igb2 Ethernet unknown0  half  igb2
igb0 Ethernet up 1000   full  igb0
igb3 Ethernet unknown0  half  igb3
igb1 Ethernet unknown0  half  igb1


dladm create-vnic -l igb0 fred5
zfs create -o mountpoint=/zones rpool/zones

/usr/sbin/zonecfg -z fred5

create
set zonepath=/zones/fred5
set autoboot=true
set limitpriv=default,dtrace_proc,dtrace_user
set ip-type=exclusive
add net
set physical=fred5
end
verify
commit
exitz
oneadm -z fred5 install
zoneadm -z fred5 boot
zlogin -e+ -C fred5

dladm show-vnic
LINK OVER SPEED  MACADDRESSMACADDRTYPE VID
fred5  ?1000   2:8:20:f4:52:49   random  0

ipadm create-if fred5

ipadm create-addr -T static -a 192.168.240.214/24 fred5/v4static
route -p add default 192.168.240.254

ping 192.168.240.214
192.168.240.214 is alive
ping 192.168.240.254
no answer from 192.168.240.254


ifconfig
lo0: flags=2001000849 mtu
8232 index 1
 inet 127.0.0.1 netmask ff00
fred5: flags=1000843 mtu 1500 index 2
 inet 192.168.240.214 netmask ff00 broadcast 192.168.240.255
 ether 2:8:20:f4:52:49
lo0: flags=2002000849 mtu
8252 index 1
 inet6 ::1/128
fred5: flags=20002000840 mtu 1500 index 2
 inet6 ::/0
 ether 2:8:20:f4:52:49


What am I missing :-(

Cheers
Richard
___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss
   

___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


Re: [OmniOS-discuss] Zone network fails to work.

2016-09-12 Thread Richard Skelton
Sorry in my haste I posted fred not fred5
See corrections below :-)

Richard Skelton wrote:
> Hi,
> I have a Sun X4170 with igb network.
> I am using omnios-r151018-ae3141d
> Here are my steps to create a zone called fred5 :-
> dladm show-phys
> LINK MEDIASTATE  SPEED  DUPLEXDEVICE
> usbecm0  Ethernet down   10 full  usbecm0
> igb2 Ethernet unknown0  half  igb2
> igb0 Ethernet up 1000   full  igb0
> igb3 Ethernet unknown0  half  igb3
> igb1 Ethernet unknown0  half  igb1
>
>
> dladm create-vnic -l igb0 fred5
> zfs create -o mountpoint=/zones rpool/zones
>
> /usr/sbin/zonecfg -z fred5
>
> create
> set zonepath=/zones/fred5
> set autoboot=true
> set limitpriv=default,dtrace_proc,dtrace_user
> set ip-type=exclusive
> add net
> set physical=fred5
> end
> verify
> commit
> exitz
> oneadm -z fred5 install
> zoneadm -z fred5 boot
> zlogin -e+ -C fred5
>
> dladm show-vnic
> LINK OVER SPEED  MACADDRESSMACADDRTYPE VID
> fred5  ?1000   2:8:20:f4:52:49   random  0
>
> ipadm create-if fred5
>
> ipadm create-addr -T static -a 192.168.240.214/24 fred5/v4static
> route -p add default 192.168.240.254
>
> ping 192.168.240.214
> 192.168.240.214 is alive
> ping 192.168.240.254
> no answer from 192.168.240.254
>
>
> ifconfig  
> lo0: flags=2001000849 mtu
> 8232 index 1
> inet 127.0.0.1 netmask ff00
> fred5: flags=1000843 mtu 1500 index 2
> inet 192.168.240.214 netmask ff00 broadcast 192.168.240.255
> ether 2:8:20:f4:52:49
> lo0: flags=2002000849 mtu
> 8252 index 1
> inet6 ::1/128
> fred5: flags=20002000840 mtu 1500 index 2
> inet6 ::/0
> ether 2:8:20:f4:52:49
>
>
> What am I missing :-(
>
> Cheers
> Richard
> ___
> OmniOS-discuss mailing list
> OmniOS-discuss@lists.omniti.com
> http://lists.omniti.com/mailman/listinfo/omnios-discuss
>   
___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


Re: [OmniOS-discuss] Zone network fails to work.

2016-09-12 Thread Dan McDonald
vNICS MUST end in a number.  That's a requirement.  "fred0" or "fred23" is 
fine, but "fred" breaks things.

Dan

___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss