Skip to content

Instantly share code, notes, and snippets.

Mats Westin cadar

  • https://github.com/klarna
  • Stockholm, Sweden
Block or report user

Report or block cadar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cadar
cadar / onenicdell
Created May 9, 2012
NAT on Dell Desktop running smartos kvm (one nic: e1000g0)
View onenicdell
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
NAT on Dell PowerEdge M610 Blade Server (two nics: bnx0) running SmartOS kvm
View TwoNicsNATonSmartOS
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 --
@cadar
cadar / smart os nat
Created May 8, 2012
make nat work with kvm running debian, raw file, I will redo this tomorrow and make sure nothing unnecessary is here
View smart os nat
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
You can’t perform that action at this time.