Skip to content

Instantly share code, notes, and snippets.

View cadar's full-sized avatar

Mats W cadar

  • Stockholm, Sweden
View GitHub Profile
@cadar
cadar / smart os nat
Created May 8, 2012 20:36
make nat work with kvm running debian, raw file, I will redo this tomorrow and make sure nothing unnecessary is here
vmadm list
# remove your previous try
export ID=`vmadm list|grep run|cut -b-36` ; echo $ID
export ID=`vmadm list|grep stop|cut -b-36` ; echo $ID
vmadm stop $ID
vmadm destroy $ID
script
dladm show-phys -m
dladm show-link
@cadar
cadar / onenicdell
Created May 9, 2012 17:07
NAT on Dell Desktop running smartos kvm (one nic: e1000g0)
DELL OPTIPLEX (one nic)
dladm show-phys -m
LINK SLOT ADDRESS INUSE CLIENT
e1000g0 primary d4:be:d9:99:ea:16 yes e1000g0
ifconfig net0 unplumb
ifconfig net0 plumb
@cadar
cadar / TwoNicsNATonSmartOS
Created May 9, 2012 17:04
NAT on Dell PowerEdge M610 Blade Server (two nics: bnx0) running SmartOS kvm
Dell PowerEdge M610 Blade Server (two nics)
DELL-PERC H700
dladm show-phys -m
LINK SLOT ADDRESS INUSE CLIENT
bnx0 primary 24:b6:fd:d5:f:cf yes bnx0
bnx1 primary 24:b6:fd:d5:f:d1 no --