Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-stable
Commits
483c14b2
Commit
483c14b2
authored
Mar 26, 2003
by
Mike Hibler
Browse files
support for 1000Mbit (assume fiber right now)
parent
b2c67a67
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/freebsd/liblocsetup.pm
View file @
483c14b2
...
...
@@ -69,6 +69,7 @@ my $CHPASS = "/usr/bin/chpass -p";
my
$MKDB
=
"
/usr/sbin/pwd_mkdb -p
";
my
$IFCONFIG
=
"
/sbin/ifconfig %s inet %s netmask %s %s %s
";
my
$IFALIAS
=
"
/sbin/ifconfig %s alias %s netmask 0xffffff00
";
my
$IFC_1000MBS
=
"
media 1000baseSX
";
my
$IFC_100MBS
=
"
media 100baseTX
";
my
$IFC_10MBS
=
"
media 10baseT/UTP
";
my
$IFC_FDUPLEX
=
"
mediaopt full-duplex
";
...
...
@@ -134,7 +135,10 @@ sub os_ifconfig_line($$$$$$)
warn
("
*** Bad speed units in ifconfig!
\n
");
$speed
=
100
;
}
if
(
$speed
==
100
)
{
if
(
$speed
==
1000
)
{
$media
=
$IFC_1000MBS
;
}
elsif
(
$speed
==
100
)
{
$media
=
$IFC_100MBS
;
}
elsif
(
$speed
==
10
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment