nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

how do i assign an alias in rcconf with freebsd

This is a discussion on how do i assign an alias in rcconf with freebsd within the All about FreeBSD/OpenBSD/NetBSD forums, part of the *BSD Operating systems category; Since I'm not able edit my previous post I'm posting same question but with other task, all i wanted to ...


Go Back   nixCraft Linux Forum > *BSD Operating systems > All about FreeBSD/OpenBSD/NetBSD

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-09-2006, 09:12 PM
Guest
 
Posts: n/a
Default how do i assign an alias in rcconf with freebsd

Since I'm not able edit my previous post I'm posting same question but with other task, all i wanted to know how do i assign an alias in rcconf with freebsd
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-10-2006, 06:21 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 0
tom is an unknown quantity at this point
Default

You can edit /etc/rc.conf file using vi text editor:

Code:
vi /etc/rc.conf
Append following line to file
Code:
ifconfig_lnc0_alias0="192.168.1.5 netmask 255.255.255.255"
Replace lnc0 and ip with your own ip, make sure you use 255.255.255.255 as subnet (other than actual subnet)

Restart network service:
Code:
/etc/rc.d/netif restart
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
alias database error rbizzell All about FreeBSD/OpenBSD/NetBSD 2 11-04-2006 08:40 PM
freebsd reload rcconf All about FreeBSD/OpenBSD/NetBSD 1 01-10-2006 06:34 PM
freebsd create alias ipaddres All about FreeBSD/OpenBSD/NetBSD 1 01-10-2006 06:13 PM
freebsd ifconfig alias up ioctl siocaifaddr file exists erro ZigZag All about FreeBSD/OpenBSD/NetBSD 1 12-23-2005 04:49 PM
How to assign administrative right to others under Linux sweta Linux software 1 06-20-2005 03:20 PM


All times are GMT +5.5. The time now is 11:06 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36