ifconfig

vswr

Junior Member
Jul 30, 2000
13
0
0
:confused:


At this link here there is a explanation of the shapecfg command. I have finally got everything to work except for the following:


Then you need to configure the shaper0 interface for networking, using the usual sort of ifconfig and route commands.

ifconfig shaper0 host netmask mask broadcast bcast up
route add -net net netmask mask dev shaper0

&


route delete default eth0
route add default gw gateway shaper0


In the above two quotes, the words in italics are to be substituted with the existing values for the ethX card that I want to apply the shapecfg command to. (in my case it it eth2). How do I found out what those values are for ethX on my current working (& un'shaped') system? Yes I looked at the man pages for ifconfig & it was just as cryptic & unhelpful (read I had more questions after I looked at it) as every other man page I have seen. TIA:confused:
 

vswr

Junior Member
Jul 30, 2000
13
0
0
Originally posted by: n0cmonkey
ifconfig -a will tell you how your network interfaces are configured.



Ok. I used ifconfig & i put in the following info

ifconfig shaper0 192.168.1.128 netmask 255.255.255.0 broadcast 192.168.1.255 up <enter key>
route add -net 192.168.1.128 netmask 255.255.255.0 dev shaper0

the first line appears to be accepted...the second line (route add) always returns with the following
route: netmask doesn't match route address & then it gives me the help for route

below is my ifconfig for eth2 & route for all interfaces
I have no idea what I should be entering but I would surmise that it is wrong:) as when I use the above values it just makes eth2 stop working.




eth2 Link encap:Ethernet HWaddr 00:A0:CC:DA:F2:00
inet addr:192.168.1.128 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2832 errors:0 dropped:0 overruns:0 frame:0
TX packets:4196 errors:2 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:831447 (811.9 Kb) TX bytes:5013110 (4.7 Mb)
Interrupt:9 Base address:0x3000





[root@martrix1 root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
user-vcaug81.ds * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.128 U 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 shaper0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default user-vcaug81.ds 0.0.0.0 UG 0 0 0 ppp0
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Since Ive never played with what you are talking about, Ill guess.

The ifconfig statement should be fine.

route add -net 192.168.1.128 dev shaper0

Since I dont currently have access to a linux machine with man pages installed, I cant check the syntax.