
Solarflare
Server
Adapter
User
Guide
Solarflare
Adapters
on
FreeBSD
Issue
20
©
Solarflare
Communications
2017
294
6.5
Configuring
the
Solarflare
Adapter
The
drivers
will
be
loaded
as
part
of
the
as
part
of
the
installation.
However
the
adapter
will
not
be
configured
(adding
IP
address
and
netmask).
Each
Solarflare
network
adapter
interface
will
be
named
sfxge<n>
where
<n>
is
a
unique
identifier.
There
will
be
one
interface
per
physical
port
on
the
Solarflare
adapter.
To
configure
the
interface
and
bring
it
up
to
allow
data
to
pass,
enter
the
following:
ifconfig
sfxge<n>
inet
<IPv4
address>
netmask
<netmask>
up
This
configures
the
interface
and
initializes
it
with
the
up
command.
NOTE:
This
method
of
configuring
is
temporary.
If
you
reboot
your
computer
the
settings
will
be
lost.
To
make
these
settings
permanent,
create
entries
in
the
configuration
file
as
described
below.
Using
IPv6
To
configure
using
IPv6,
create
an
IPv6
interface
sfxge<n>
interface
with
a
link
local
IPv6
address
by
entering:
ifconfig
sfxge<n>
inet6
<IPv6
address>
prefixlen
<IPv6
prefix
length>
This
uses
automatic
link
‐
local
address
configuration,
which
is
enabled
by
default
in
FreeBSD.
It
will
give
an
IPv6
interface
name
of
sfxge<n>:1
Using
a
Configuration
File
with
IPv4
Configuration
is
set
in
the
/etc/rc.conf
file.
There
are
three
options
with
IPv4:
•
Using
a
static
IPv4
address.
To
use
this
option,
add:
ifconfig_sfxge<n>="inet
<IPv4
address>
netmask
<netmask>"
•
Using
a
hostname.
To
use
this
option,
add:
ifconfig_sfxge<n>="inet
<hostname>
"
and
modify
/etc/hosts
and
/etc/netmasks
•
Using
DHCP.
To
use
this
option,
add:
ifconfig_sfxge<n>="DHCP"
Using
Configuration
files
with
IPv6
Configuration
is
set
in
the
/etc/rc.conf
file:
•
For
automatic
configuration
by
StateLess
Address
AutoConfiguration
(SLAAC),
add:
ifconfig_sfxge<n>_ipv6="inet6
accept_rtadv"