*[root@cloud4r ~]# dladm create-bridge -l e1000g1 vboxbr* The bridge I've created using the above command is not saved when the system is restarted! How to make it persistent across reboots? On 07-Jan-2015 7:39 pm, "Ganapathy S A" <[email protected]> wrote:
> Things are now working as what I wanted. This is what I missed: > *[root@cloud4r ~]# dladm create-bridge -l e1000g1 vboxbr* > [root@cloud4r ~]# dladm show-bridge > BRIDGE PROTECT ADDRESS PRIORITY DESROOT > vmwarebr stp 32768/8:0:27:ad:1b:80 32768 32768/8:0:27:ad:1b:80 > vboxbr stp 32768/8:0:27:71:ba:de 32768 32768/8:0:27:71:ba:de > > > Could someone point out some tutorials/guides for Solaris basic > administration? Thanks to all for the help. > > > Regards, > Ganapathy > > On 6 January 2015 at 01:35, Ganapathy S A <[email protected]> wrote: > >> Sorry Usama, >> >> Modified /usbkey/config as you said and restarted smartos but didn't work! >> >> From SmartOS (guest), >> [root@cloud4r ~]# ping 192.168.56.1 >> no answer from 192.168.56.1 >> >> From Linux (host), >> ganu@ganu-laptop ~ $ ping 192.168.56.100 >> PING 192.168.56.100 (192.168.56.100) 56(84) bytes of data. >> ^C >> --- 192.168.56.100 ping statistics --- >> 18 packets transmitted, 0 received, 100% packet loss, time 17134ms >> >> >> ​192.168.56.1 is the new IP I got as a result of configuring vbox 'host >> only adapter​' >> >> >> Regards, >> Ganapathy >> >> On 6 January 2015 at 01:25, Usama Ahmad <[email protected]> wrote: >> >>> >>> On 5 Jan 2015 13:49, "Ganapathy S A via smartos-discuss" < >>> [email protected]> wrote: >>> > >>> > Running SmartOS as VirtualBox guest under Linux Mint in my laptop. >>> Under SmartOS guest, configured Network Adapter1 as "Bridged Adapter" to >>> have smartos reach the internet and things are working as expected. But I >>> wanted to have local networking between vbox host (linux) and guest >>> (smartos) even when my PC is not connected to my internet gateway. Googled >>> on this topic and read various articles showing example between linux host >>> & linux guest but not between linux host & smartos guest (not even >>> solaris/opensolaris). Under SmartOS guest, tried configuring Network >>> Adapter2 as "Host only Adapter" and brought up a new interface in SmartOS >>> for this purpose but still I couldn't get it done! >>> > >>> > Please have a look at my networking setup below: >>> > >>> > [root@cloud4r ~]# uname -a >>> > SunOS cloud4r 5.11 joyent_20141225T170427Z i86pc i386 i86pc >>> > >>> > [root@cloud4r ~]# dladm show-phys -m >>> > LINK SLOT ADDRESS INUSE CLIENT >>> > e1000g0 primary 8:0:27:ad:1b:80 yes e1000g0 >>> > e1000g1 primary 8:0:27:71:ba:de yes e1000g1 >>> > >>> > [root@cloud4r ~]# dladm show-phys >>> > LINK MEDIA STATE SPEED DUPLEX DEVICE >>> > e1000g0 Ethernet up 1000 full e1000g0 >>> > e1000g1 Ethernet up 1000 full e1000g1 >>> > >>> > [root@cloud4r ~]# dladm show-link >>> > LINK CLASS MTU STATE BRIDGE OVER >>> > e1000g0 phys 1500 up vmwarebr -- >>> > e1000g1 phys 1500 up -- -- >>> > vmwarebr0 bridge 1500 up -- e1000g0 >>> > external0 vnic 1500 up -- e1000g1 >>> > net0 vnic 1500 ? -- e1000g0 >>> > net0 vnic 1500 ? -- e1000g0 >>> > >>> > [root@cloud4r ~]# dladm show-ether >>> > LINK PTYPE STATE AUTO >>> SPEED-DUPLEX PAUSE >>> > e1000g0 current up yes >>> 1G-f bi >>> > e1000g1 current up yes >>> 1G-f bi >>> > >>> > [root@cloud4r ~]# dladm show-vnic >>> > LINK OVER SPEED MACADDRESS MACADDRTYPE VID ZONE >>> > external0 e1000g1 1000 2:8:20:67:1f:34 random 0 -- >>> > net0 e1000g0 0 92:a7:1e:94:29:83 fixed 0 >>> d83c7e3b-edeb-47dc-ad53-da8f48b487db >>> > net0 e1000g0 0 22:67:af:33:ff:3b fixed 0 >>> 5ffdaeb3-b03f-4858-a8b2-6d357b0b2c86 >>> > >>> > [root@cloud4r ~]# dladm show-bridge >>> > BRIDGE PROTECT ADDRESS PRIORITY DESROOT >>> > vmwarebr stp 32768/8:0:27:ad:1b:80 32768 32768/8:0:27:ad:1b:80 >>> > >>> > [root@cloud4r ~]# ifconfig -a >>> > lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu >>> 8232 index 1 >>> > inet 127.0.0.1 netmask ff000000 >>> > e1000g0: flags=1000943<UP,BROADCAST,RUNNING,PROMISC,MULTICAST,IPv4> >>> mtu 1500 index 2 >>> > inet 192.168.1.100 netmask ffffff00 broadcast 192.168.1.255 >>> > ether 8:0:27:ad:1b:80 >>> > external0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 >>> index 3 >>> > inet 192.168.56.100 netmask ffffff00 broadcast 192.168.56.255 >>> > ether 2:8:20:67:1f:34 >>> > lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu >>> 8252 index 1 >>> > inet6 ::1/128 >>> > >>> > [root@cloud4r ~]# cat /usbkey/config >>> > # >>> > # This file was auto-generated and must be source-able by bash. >>> > # >>> > >>> > # admin_nic is the nic admin_ip will be connected to for headnode >>> zones. >>> > admin_nic=8:0:27:ad:1b:80 >>> > admin_ip=192.168.1.100 >>> > admin_netmask=255.255.255.0 >>> > admin_network= >>> > admin_gateway=192.168.1.1 >>> > >>> > external_nic=8:0:27:71:ba:de >>> > external_ip=192.168.56.100 >>> > external_netmask=255.255.255.0 >>> > external_network= >>> > external_gateway=192.168.56.1 >>> > >>> > headnode_default_gateway= >>> > >>> > dns_resolvers=8.8.8.8,8.8.4.4 >>> > dns_domain= >>> > >>> > ntp_hosts=0.smartos.pool.ntp.org >>> > compute_node_ntp_hosts=dhcp >>> > >>> > [root@cloud4r ~]# ping 192.168.1.100 >>> > 192.168.1.100 is alive >>> > >>> > [root@cloud4r ~]# ping 192.168.56.100 >>> > 192.168.56.100 is alive >>> > >>> > [root@cloud4r ~]# ping 192.168.56.1 >>> > no answer from 192.168.56.1 >>> > >>> > From linux, 192.168.1.100 is pingable but not 192.168.56.100 >>> > Additionally, I need to provide this external_nic to my zones inside >>> smartos so that zones can directly comminucate to linux host or vice versa. >>> Please let me know what else need to be configured. Thanks in advance. >>> > >>> > Regards, >>> > Ganapathy >>> >>> Hello Ganapathy, >>> >>> Could you try >>> >>> admin_network= ... >>> >>> And >>> >>> external_network= ... >>> >>> In your config file >>> >>> Regards >>> Usama >>> >>> > smartos-discuss | Archives | Modify Your Subscription >>> >> >> > ------------------------------------------- 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
