wil me maar niet lukken.
zoals je ziet heb ik al geprobeerd om de dhcpcd te commenten en daarvoor in de plaats dhclient eth1 te plaatsen...
Maar na de reboot heb ik geen ipadres en als ik dan op de console dhclient eth1 tik dan pakt tie hem niet. eth1 not found....
Ik wil dhclient gebruiken omdat ik mijn macadres moet spoofen voor chello, en voor zover ik weet kan dat niet met dhcpcd. met ifconfig hw ether xxxxxxxxxx om het macadres te reconfiggen gaat volgens mij niet opschieten, omdat ifconfig pas ná de dhcp-client wordt uitgevoerd...
edit: mijn dhclient.conf
What can i do
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| # Set up the eth1 interface:
if [ "$USE_DHCP2" = "yes" ]; then # use DHCP to set everything up:
echo "Attempting to configure eth1 by contacting a DHCP server..."
# Add the -h option to the DHCP hostname:
if [ ! "$DHCP_HOSTNAME2" = "" ]; then
DHCP_HOSTNAME2="-h $DHCP_HOSTNAME2"
fi
/sbin/dhcpcd -t 10 ${DHCP_HOSTNAME2} -d eth1
#/sbin/dhclient eth1
elif [ ! "$IPADDR2" = "127.0.0.1" -a ! "$IPADDR2" = "" ]; then # set up IP statically:
# Determine broadcast and network addresses from the IP address and netmask:
BROADCAST2=`/bin/ipmask $NETMASK2 $IPADDR2 | cut -f 1 -d ' '`
NETWORK2=`/bin/ipmask $NETMASK2 $IPADDR2 | cut -f 2 -d ' '`
# Set up the ethernet card:
echo "Configuring eth1:"
echo "ifconfig eth1 ${IPADDR2} broadcast ${BROADCAST2} netmask ${NETMASK2}"
/sbin/ifconfig eth1 ${IPADDR2} broadcast ${BROADCAST2} netmask ${NETMASK2}
# If that didn't succeed, give the system administrator some hints:
if [ ! $? = 0 ]; then |
zoals je ziet heb ik al geprobeerd om de dhcpcd te commenten en daarvoor in de plaats dhclient eth1 te plaatsen...
Maar na de reboot heb ik geen ipadres en als ik dan op de console dhclient eth1 tik dan pakt tie hem niet. eth1 not found....
Ik wil dhclient gebruiken omdat ik mijn macadres moet spoofen voor chello, en voor zover ik weet kan dat niet met dhcpcd. met ifconfig hw ether xxxxxxxxxx om het macadres te reconfiggen gaat volgens mij niet opschieten, omdat ifconfig pas ná de dhcp-client wordt uitgevoerd...
edit: mijn dhclient.conf
code:
1
2
3
4
5
6
| # dhclient.conf
#
# Configuration file for ISC dhclient (see 'man dhclient.conf')
interface "eth1" {
send dhcp-client-identifier 1:00:80:AD:71:27:DA;
} |
What can i do
[ Voor 12% gewijzigd door Verwijderd op 03-04-2003 15:06 ]