LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-14-2018, 10:31 AM   #1
sajansen
Member
 
Registered: Jul 2017
Location: Netherlands
Distribution: Fedora
Posts: 32

Rep: Reputation: Disabled
changing network settings in freebsd (CLI)


hey,

I was moving my DirectAdmin server from a VM to freenas jail. I got it installed for most part but what my bigest problem is, is that i need to add a network interface with my WAN IP and the instructions i had were for debian/ubuntu and dont seem to work for freebsd.

I need these settings to apply:

auto eth0:0
allow-hotplug eth0:0
iface eth0:0 inet static
address <WAN IP>
netmask 255.255.255.0

From what i can tell the eth0:0 needs to be changed into epair0b:0? but i have no idea where i need to place this. the /etc/network/interfaces isnt there on freebsd.

i hope you can help me fix this.
thanks,
sander
 
Old 02-14-2018, 11:58 AM   #2
sajansen
Member
 
Registered: Jul 2017
Location: Netherlands
Distribution: Fedora
Posts: 32

Original Poster
Rep: Reputation: Disabled
I think i found it.

editing /etc/rc.conf:

ifconfig_<INTERFACE NAME>_alias0="<WAN IP> netmask 255.255.255.255"

adding this line seems to have done the trick
 
Old 02-15-2018, 05:12 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Thanks for the update and solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Changing System Currency settings using CLI cex Linux - Newbie 3 10-01-2010 05:22 AM
Changing network settings in Slack 12.1 shivkiyer Slackware 5 09-09-2010 11:42 PM
changing screen resolution and frequency with nvidia-settings from the CLI Valkyrie_of_valhalla Linux - Software 12 04-15-2007 11:58 AM
Changing Network Settings ComputerErik Slackware 1 08-06-2005 12:21 AM
Changing DHCP Network Settings dhammika Linux - Networking 3 03-16-2004 08:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration