LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 09-15-2008, 07:12 AM   #1
pauledwards03
Member
 
Registered: Dec 2006
Distribution: Slackware 12.1
Posts: 94

Rep: Reputation: 15
how to remove network alias slackware


Hello, I have a network alias set up on my card, so I have eth1 and eth1:1. How do I permanently remove eth1:1? ifconfig eth1:1 down works but only until next system startup. This is Slackware 12.1, I have no /etc/network/interfaces file.
 
Old 09-15-2008, 07:27 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Edit /etc/rc.d/rc.inet1.conf, find the eth1:1 entry and delete it
 
Old 09-15-2008, 07:35 AM   #3
pauledwards03
Member
 
Registered: Dec 2006
Distribution: Slackware 12.1
Posts: 94

Original Poster
Rep: Reputation: 15
Thanks for the reply, but in /etc/rc.d/rc.inet1.conf there is no entry for eth1:1:

Code:
# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY=""

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0.  Uncomment the lines you need and fill
## in your info.  (You may not need all of these for your wireless network)
#IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
#USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=BARRIER05
#WLAN_MODE[4]=Managed
##WLAN_RATE[4]="54M auto"
##WLAN_CHANNEL[4]="auto"
##WLAN_KEY[4]="D5AD1F04ACF048EC2D0B1C80C7"
##WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="ndiswrapper"

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0"              # Use a different interface name nstead of
                                # the default 'eth4'
#HWADDR[4]="00:01:23:45:67:89"  # Overrule the card's hardware MAC address
#MTU[4]=""                      # The default MTU is 1500, but you might need
                                # 1360 when you use NAT'ed IPSec traffic.
#DHCP_KEEPRESOLV[4]="yes"       # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes"          # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes"           # If you don't want the DHCP server to change
                                # your default gateway
#DHCP_IPADDR[4]=""              # Request a specific IP address from the DHCP
                                # server
#WLAN_ESSID[4]=DARKSTAR         # Here, you can override _any_ parameter
                                # defined in rc.wireless.conf, by prepending
                                # 'WLAN_' to the parameter's name. Useful for
                                # those with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
                                # Some drivers require a private ioctl to be
                                # set through the iwpriv command. If more than
                                # one is required, you can place them in the
                                # IWPRIV parameter (separated with the pipe (|)
                                # character, see the example).
 
Old 09-15-2008, 07:41 AM   #4
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
I've not seen this before but check your /etc/udev/rules.d/ files - perhaps 75-network-devices.rules file.

I'm not sure if the udev rules can create an alias but it may be worth a look.
 
Old 09-15-2008, 07:44 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If it's not in /etc/rc.d/rc.inet1.conf then I guess you use the "ifconfig eth1:1 ..." command in one of your startup scripts, most likely /etc/rc.d/rc.local.
 
Old 09-15-2008, 07:52 AM   #6
pauledwards03
Member
 
Registered: Dec 2006
Distribution: Slackware 12.1
Posts: 94

Original Poster
Rep: Reputation: 15
Didn't see anythign related to eth1:1 in any of these files:

Code:
paul@/etc/rc.d $ cd /etc/udev/rules.d/     
paul@/etc/udev/rules.d $ ls
05-udev-early.rules		  70-persistent-cd.rules
40-alsa.rules			  70-persistent-net.rules
40-slackware.rules		  75-cd-aliases-generator.rules
40-video.rules			  75-persistent-net-generator.rules
45-nokiadku2.rules		  80-drivers.rules
50-udev-default.rules		  80-kino.rules
55-hpmud.rules			  80-libnjb.rules
60-cdrom_id.rules		  80-libpisock.rules
60-pcmcia.rules			  80-libsane.rules
60-persistent-input.rules	  90-hal.rules
60-persistent-storage-tape.rules  90-libgphoto2.rules
60-persistent-storage.rules	  90-libmtp.rules
61-persistent-storage-edd.rules   90-network.rules
64-device-mapper.rules		  95-udev-late.rules
65-permissions.rules		  99-fuse.rules
paul@/etc/udev/rules.d $ vi 90-network.rules 
skipping 3 old session files
reading 90-network.rules

paul@/etc/udev/rules.d $ cat *.rules | grep eth1 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0e:35:ed:41:e6", ATTR{type}=="1", NAME="eth1"
paul@/etc/udev/rules.d $ cat *.rules | grep eth1:1
paul@/etc/udev/rules.d $ mousepad 90-network.rules 
paul@/etc/udev/rules.d $ mousepad 75-persistent-net-generator.rules 
paul@/etc/udev/rules.d $ cat * | grep alias
ATTRS{modalias}=="input:*-*a[068],*|input:*-*a*,[68],*m*", ATTRS{modalias}!="input:*-*k*14A,*r*", ENV{ID_CLASS}="joystick"
# program, probably run by the cd-aliases-generator.rules rules file.
paul@/etc/udev/rules.d $ vi 75-cd-aliases-generator.rules 
skipping 3 old session files
reading 75-cd-aliases-generator.rules

paul@/etc/udev/rules.d $
All my unwanted alias is a second IP address for one interface, I may be calling it something it isn't?:

Code:
paul@/etc/udev/rules.d $ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 08:00:46:5f:e7:6e  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth1      Link encap:Ethernet  HWaddr 00:0e:35:ed:41:e6  
          inet addr:192.168.55.120  Bcast:192.168.55.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21847 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6531 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4766447 (4.5 MiB)  TX bytes:749613 (732.0 KiB)
          Interrupt:9 Base address:0x8000 Memory:e0206000-e0206fff 

eth1:1    Link encap:Ethernet  HWaddr 00:0e:35:ed:41:e6  
          inet addr:10.72.11.41  Bcast:10.72.11.127  Mask:255.255.255.128
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:9 Base address:0x8000 Memory:e0206000-e0206fff 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)
I would like to remove eth1:1 and give the eth1:1 properties to eth1. Thanks
 
Old 09-15-2008, 08:45 AM   #7
pauledwards03
Member
 
Registered: Dec 2006
Distribution: Slackware 12.1
Posts: 94

Original Poster
Rep: Reputation: 15
If it matters, to get this alias set up all I did was run

ifconfig eth1:1 10.72.11.41 netmask 255.255.255.128 up

(I can run ifconfig eth1:1 down but at startup it comes back)
 
Old 09-15-2008, 12:06 PM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
(I can run ifconfig eth1:1 down but at startup it comes back)
Since it comes back at startup that means that the "ifconfig ... up" is ran from one of the startup scripts located in /etc/rc.d probably rc.local. Did you check if that's the case?
 
Old 09-15-2008, 12:41 PM   #9
pauledwards03
Member
 
Registered: Dec 2006
Distribution: Slackware 12.1
Posts: 94

Original Poster
Rep: Reputation: 15
Yes I did, I forgot that I had written a script and ran it from rc.local to set up proxy servers and stuff, the eth1:1 thing was in that script. I updated it to just use eth1 and all is well, thanks for the replies
 
  


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
restart network after adding NIC alias blizunt7 Linux - Networking 1 06-06-2008 02:57 PM
How to remove double alias? Frank Soranno Linux - Software 6 05-08-2006 04:44 PM
Permanent Alias In Slackware dmcbeing Linux - Software 2 11-10-2005 11:18 AM
Remove alias from kxdocker aeruzcar Linux - Software 2 10-03-2005 04:37 PM
Adding Network Interface alias from command line WireLine Fedora 2 06-08-2005 11:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 03:01 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